Use more appropriate DatumGet* function
Peter Eisentraut <peter@eisentraut.org>
Author:
Peter Eisentraut <peter@eisentraut.org>
Date: 2025-12-03T07:52:28Z
Releases:
19 (unreleased)
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
Files
| Path | Change | +/− |
|---|---|---|
| src/test/modules/test_resowner/test_resowner_basic.c | modified | +2 −2 |
Discussion
- get rid of Pointer type, mostly 26 messages · 2025-11-24 → 2026-02-09