postgresql/src
Tom Lane 2fd3e2fa5c Fix accidentally-harmless thinko in psqlscan_test_variable().
This code was passing literal strings to psqlscan_emit,
which is quite contrary to that function's specification:
"If you pass it something that is not part of the yytext
string, you are making a mistake".  It accidentally worked
anyway, even in non-safe_encoding mode.  psqlscan_emit
would compute a garbage "reference" pointer, but would
never dereference that since the passed string is all-ASCII.
So there's no live bug today, but that is a happenstance
outcome of psqlscan_emit's current implementation.

Let's make psqlscan_test_variable do what it's supposed to,
namely append directly to the output buffer.  This is just
future-proofing against possible changes in psqlscan_emit,
so I don't feel a need to back-patch.
2025-03-31 12:16:32 -04:00
..
backend Enable IO concurrency on all systems 2025-03-30 19:16:47 -04:00
bin Add relallfrozen to pg_dump statistics. 2025-03-30 22:14:06 -07:00
common Fix integer-overflow problem in scram_SaltedPassword() 2025-03-26 17:46:51 +09:00
fe_utils Fix accidentally-harmless thinko in psqlscan_test_variable(). 2025-03-31 12:16:32 -04:00
include Inline CRC computation for small fixed-length input on x86 2025-03-31 13:17:21 +07:00
interfaces Revert "Tidy up locale thread safety in ECPG library." 2025-03-28 21:27:37 +01:00
makefiles aio: Add liburing dependency 2025-03-26 19:45:32 -04:00
pl Use PG_MODULE_MAGIC_EXT in our installable shared libraries. 2025-03-26 11:11:02 -04:00
port Fix "‘static’ is not at beginning of declaration" warning 2025-03-29 10:48:59 -04:00
template thread-safety: gmtime_r(), localtime_r() 2024-08-23 07:43:04 +02:00
test Add relallfrozen to pg_dump statistics. 2025-03-30 22:14:06 -07:00
timezone pg_noreturn to replace pg_attribute_noreturn() 2025-03-13 12:37:26 +01:00
tools amcheck: Add gin_index_check() to verify GIN index 2025-03-29 15:44:29 +01:00
tutorial Doc: simplify the tutorial's window-function examples. 2025-01-21 14:43:21 -05:00
.gitignore
DEVELOPERS
Makefile Remove distprep 2023-11-06 15:18:04 +01:00
Makefile.global.in aio: Add liburing dependency 2025-03-26 19:45:32 -04:00
Makefile.shlib Remove AIX support 2024-02-28 15:17:23 +04:00
meson.build Update copyright for 2025 2025-01-01 11:21:55 -05:00
nls-global.mk Remove distprep 2023-11-06 15:18:04 +01:00