Use more appropriate DatumGet* function
authorPeter Eisentraut <[email protected]>
Wed, 3 Dec 2025 07:52:28 +0000 (08:52 +0100)
committerPeter Eisentraut <[email protected]>
Wed, 3 Dec 2025 07:52:28 +0000 (08:52 +0100)
commit8c6bbd674ed810df9af5ec42f6b38c205e3ad365
tree2ef7f5fd4135168a70c7ba71815723cf3d3abc7e
parent623801b3bdb4e16df39f945b6aa5f109744c7b6b
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 <[email protected]>
Reviewed-by: Bertrand Drouvot <[email protected]>
Discussion: https://www.postgresql.org/message-id/4154950a-47ae-4223-bd01-1235cc50e933%40eisentraut.org
src/test/modules/test_resowner/test_resowner_basic.c