pgsql: pg_restore: Fix wrong descriptions of --with-{schema,data,statis

2025-06-12 Thread Fujii Masao
pg_restore: Fix wrong descriptions of --with-{schema,data,statistics} options. Commit bde2fb797aa added the --with-schema, --with-data, and --with-statistics options to pg_restore. These options control whether to restore schema, data, or statistics if present in the archive. However, the help mes

pgsql: Replace %llu by PRIu64 in AIO io_uring code

2025-06-12 Thread Michael Paquier
Replace %llu by PRIu64 in AIO io_uring code This is a continuation of 15a79c73111f, cleaning up the AIO io_uring code that has been committed after that while still using %llu. The code changed here is new in v18, so cleaning things now means less conflicts if this area of the code changes on bac

pgsql: psql: Forbid use of COPY and \copy while in a pipeline

2025-06-12 Thread Michael Paquier
psql: Forbid use of COPY and \copy while in a pipeline Running COPY within a pipeline can break protocol synchronization in multiple ways. psql is limited in terms of result processing if mixing COPY commands with normal queries while controlling a pipeline with the new meta-commands, as an effec

pgsql: Fix squashing algorithm for query texts

2025-06-12 Thread Álvaro Herrera
Fix squashing algorithm for query texts The algorithm to squash lists of constants added by commit 62d712ecfd94 was a bit too simplistic; we wanted to avoid adding unnecessary complexity, but cases like direct function calls of typecasting functions (and others) were missed, and bogus SQL syntax w