pgsql: Message style improvements

2022-09-24 Thread Peter Eisentraut
Message style improvements Branch -- REL_15_STABLE Details --- https://git.postgresql.org/pg/commitdiff/517484b5820e9e20057ff066b5df7d09cbb5f464 Modified Files -- src/backend/access/transam/xlogprefetcher.c | 2 +- src/backend/access/transam/xlogreader.c | 4 ++-- src/b

pgsql: Message style improvements

2022-09-24 Thread Peter Eisentraut
Message style improvements Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/26f7802beb2a4aafa0903f5bedeb7f1fa6f4f358 Modified Files -- src/backend/access/transam/xlogprefetcher.c | 2 +- src/backend/access/transam/xlogreader.c | 4 ++-- src/backend/

pgsql: Add read support for some missing raw parse nodes

2022-09-24 Thread Peter Eisentraut
Add read support for some missing raw parse nodes The node types A_Const, Constraint, and A_Expr had custom output functions, but no read functions were implemented so far. The A_Expr output format had to be tweaked a bit to make it easier to parse. Be a bit more cautious about applying strncmp

pgsql: Fix reading of BitString nodes

2022-09-24 Thread Peter Eisentraut
Fix reading of BitString nodes The node tokenizer went out of its way to store BitString node values without the leading 'b'. But everything else in the system stores the leading 'b'. This would break if a BitString node is read-printed-read. Also, the node tokenizer didn't know that BitString

pgsql: Fix reading of most-negative integer value nodes

2022-09-24 Thread Peter Eisentraut
Fix reading of most-negative integer value nodes The main parser checks whether a literal fits into an int when deciding whether it should be put into an Integer or Float node. The parser processes integer literals without signs. So a most-negative integer literal will not fit into Integer and w

pgsql: Remove uses of register due to incompatibility with C++17 and up

2022-09-24 Thread Andres Freund
Remove uses of register due to incompatibility with C++17 and up The use in regexec.c could remain, since we only try to keep headers C++ clean. But there really doesn't seem to be a good reason to use register in that spot. Discussion: https://postgr.es/m/20220308185902.ibdqmasoaunzj...@alap3.a

pgsql: meson: Remove non-binary targets accidentally added to bin_targe

2022-09-24 Thread Andres Freund
meson: Remove non-binary targets accidentally added to bin_targets Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/a075c616d22921fd90eafa852f140df9cd832209 Modified Files -- src/bin/psql/meson.build | 2 -- 1 file changed, 2 deletions(-)

pgsql: De-special-case pgevent's rc file handling

2022-09-24 Thread Andres Freund
De-special-case pgevent's rc file handling There's really no need to build win32ver.rc as part of building pgmsgevent.rc. This will make it sligthly easier to add rc file generation to the meson build. Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/eef63941c127bcfb