| From: | Peter Eisentraut <peter(at)eisentraut(dot)org> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Use more appropriate DatumGet* function |
| Date: | 2025-12-03 07:54:07 |
| Message-ID: | E1vQhgd-002YfU-0Y@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
Use more appropriate DatumGet* function
Use DatumGetCString() instead of DatumGetPointer() for returning a C
string. Right now, they are the same, but that doesn't always have to
be so.
Reviewed-by: Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com>
Reviewed-by: Bertrand Drouvot <bertranddrouvot(dot)pg(at)gmail(dot)com>
Discussion: https://www.postgresql.org/message-id/4154950a-47ae-4223-bd01-1235cc50e933%40eisentraut.org
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/8c6bbd674ed810df9af5ec42f6b38c205e3ad365
Modified Files
--------------
src/test/modules/test_resowner/test_resowner_basic.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Peter Eisentraut | 2025-12-03 08:54:41 | pgsql: Don't rely on pointer arithmetic with Pointer type |
| Previous Message | Amit Kapila | 2025-12-03 03:41:10 | pgsql: Fix shadow variable warning in subscriptioncmds.c. |