pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Use more appropriate DatumGet* function
Date: Wed, 03 Dec 2025 07:54:07 +0000
Message-ID: <E1vQhgd-002YfU-0Y@gemulon.postgresql.org> (raw)

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.evan.chao@gmail.com>
Reviewed-by: Bertrand Drouvot <bertranddrouvot.pg@gmail.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(-)



Message-ID: <E1vQhgd-002YfU-0Y@gemulon.postgresql.org>
Permalink:  ../E1vQhgd-002YfU-0Y@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1vQhgd-002YfU-0Y@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: peter@eisentraut.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Use more appropriate DatumGet* function
  In-Reply-To: <E1vQhgd-002YfU-0Y@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox