Re: pgsql: Build all Flex files standalone

2022-09-03 Thread John Naylor
Crake fails with headerscheck: Sep 04 01:56:01 In file included from /tmp/headerscheck.UNgmKy/test.c:2: Sep 04 01:56:01 /home/andrew/bf/root/HEAD/pgsql.build/../pgsql/src/backend/utils/adt/jsonpath_internal.h:26:10: fatal error: jsonpath_gram.h: No such file or directory Sep 04 01:56:0126 | #i

pgsql: Build all Flex files standalone

2022-09-03 Thread John Naylor
Build all Flex files standalone The proposed Meson build system will need a way to ignore certain generated files in order to coexist with the autoconf build system, and C files generated by Flex which are #include'd into .y files make this more difficult. In similar vein to 72b1e3a21, arrange for

pgsql: Move private declarations shared between guc.c and guc-file.l to

2022-09-03 Thread John Naylor
Move private declarations shared between guc.c and guc-file.l to new header Further preparatory refactoring for compiling guc-file.c standalone. Reviewed by Andres Freund Discussion: https://www.postgresql.org/message-id/20220810171935.7k5zgnjwqzalzmtm%40awork3.anarazel.de Discussion: https://w

pgsql: Preparatory refactoring for compiling guc-file.c standalone

2022-09-03 Thread John Naylor
Preparatory refactoring for compiling guc-file.c standalone Mostly this involves moving ProcessConfigFileInternal() to guc.c and fixing the shared API to match. Reviewed by Andres Freund Discussion: https://www.postgresql.org/message-id/20220810171935.7k5zgnjwqzalzmtm%40awork3.anarazel.de Discus

pgsql: Fix sign-compare warnings arising from port/simd.h

2022-09-03 Thread John Naylor
Fix sign-compare warnings arising from port/simd.h Noted while building an extension using -Wsign-compare. Per gripe from Pavel Stehule Discussion: https://www.postgresql.org/message-id/CAFj8pRAagKQHfw71aQbL8PbL0S_360M61V0_vPqJXbpUFvqnRA%40mail.gmail.com Branch -- master Details --- ht

pgsql: doc: Fix two queries related to jsonb functions

2022-09-03 Thread Michael Paquier
doc: Fix two queries related to jsonb functions These have been updated by the revert done in 2f2b18b, but the pre-revert state was correct. Note that the result was incorrectly formatted in the first case. Author: Erik Rijkers Discussion: https://postgr.es/m/13777e96-24b6-396b-cb16-8ad01b6ac...

pgsql: doc: Fix two queries related to jsonb functions

2022-09-03 Thread Michael Paquier
doc: Fix two queries related to jsonb functions These have been updated by the revert done in 2f2b18b, but the pre-revert state was correct. Note that the result was incorrectly formatted in the first case. Author: Erik Rijkers Discussion: https://postgr.es/m/13777e96-24b6-396b-cb16-8ad01b6ac...

pgsql: doc: Fix two queries related to jsonb functions

2022-09-03 Thread Michael Paquier
doc: Fix two queries related to jsonb functions These have been updated by the revert done in 2f2b18b, but the pre-revert state was correct. Note that the result was incorrectly formatted in the first case. Author: Erik Rijkers Discussion: https://postgr.es/m/13777e96-24b6-396b-cb16-8ad01b6ac...

pgsql: doc: Fix two queries related to jsonb functions

2022-09-03 Thread Michael Paquier
doc: Fix two queries related to jsonb functions These have been updated by the revert done in 2f2b18b, but the pre-revert state was correct. Note that the result was incorrectly formatted in the first case. Author: Erik Rijkers Discussion: https://postgr.es/m/13777e96-24b6-396b-cb16-8ad01b6ac...