pgsql: Fix typo in logicalfuncs.c.

2022-02-25 Thread Amit Kapila
Fix typo in logicalfuncs.c. Author: Bharath Rupireddy Discussion: https://postgr.es/m/CALj2ACX1mVtw8LWEnZgnpPdk2bPFR1xX2ZN+8GfXCffyip_9=q...@mail.gmail.com Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/a89850a57e0557bd3faab32398eb2d9536f6e2a4 Modified Files

pgsql: Add further debug info to help debug 019_replslot_limit.pl failu

2022-02-25 Thread Andres Freund
Add further debug info to help debug 019_replslot_limit.pl failures. See also afdeff10526. Failures after that commit provided a few more hints, but not yet enough to understand what's going on. In 019_replslot_limit.pl shut down nodes with fast instead of immediate mode if we observe the

pgsql: Disallow execution of SPI functions during plperl function compi

2022-02-25 Thread Tom Lane
Disallow execution of SPI functions during plperl function compilation. Perl can be convinced to execute user-defined code during compilation of a plperl function (or at least a plperlu function). That's not such a big problem as long as the activity is confined within the Perl interpreter, and

pgsql: Disallow execution of SPI functions during plperl function compi

2022-02-25 Thread Tom Lane
Disallow execution of SPI functions during plperl function compilation. Perl can be convinced to execute user-defined code during compilation of a plperl function (or at least a plperlu function). That's not such a big problem as long as the activity is confined within the Perl interpreter, and

pgsql: Disallow execution of SPI functions during plperl function compi

2022-02-25 Thread Tom Lane
Disallow execution of SPI functions during plperl function compilation. Perl can be convinced to execute user-defined code during compilation of a plperl function (or at least a plperlu function). That's not such a big problem as long as the activity is confined within the Perl interpreter, and

pgsql: Disallow execution of SPI functions during plperl function compi

2022-02-25 Thread Tom Lane
Disallow execution of SPI functions during plperl function compilation. Perl can be convinced to execute user-defined code during compilation of a plperl function (or at least a plperlu function). That's not such a big problem as long as the activity is confined within the Perl interpreter, and

pgsql: Disallow execution of SPI functions during plperl function compi

2022-02-25 Thread Tom Lane
Disallow execution of SPI functions during plperl function compilation. Perl can be convinced to execute user-defined code during compilation of a plperl function (or at least a plperlu function). That's not such a big problem as long as the activity is confined within the Perl interpreter, and

pgsql: Disallow execution of SPI functions during plperl function compi

2022-02-25 Thread Tom Lane
Disallow execution of SPI functions during plperl function compilation. Perl can be convinced to execute user-defined code during compilation of a plperl function (or at least a plperlu function). That's not such a big problem as long as the activity is confined within the Perl interpreter, and

pgsql: pg_waldump: Fix error message for WAL files smaller than XLOG_BL

2022-02-25 Thread Andres Freund
pg_waldump: Fix error message for WAL files smaller than XLOG_BLCKSZ. When opening a WAL file smaller than XLOG_BLCKSZ (e.g. 0 bytes long) while determining the wal_segment_size, pg_waldump checked errno, despite errno not being set by the short read. Resulting in a bogus error message. Author:

pgsql: pg_waldump: Fix error message for WAL files smaller than XLOG_BL

2022-02-25 Thread Andres Freund
pg_waldump: Fix error message for WAL files smaller than XLOG_BLCKSZ. When opening a WAL file smaller than XLOG_BLCKSZ (e.g. 0 bytes long) while determining the wal_segment_size, pg_waldump checked errno, despite errno not being set by the short read. Resulting in a bogus error message. Author:

pgsql: pg_waldump: Fix error message for WAL files smaller than XLOG_BL

2022-02-25 Thread Andres Freund
pg_waldump: Fix error message for WAL files smaller than XLOG_BLCKSZ. When opening a WAL file smaller than XLOG_BLCKSZ (e.g. 0 bytes long) while determining the wal_segment_size, pg_waldump checked errno, despite errno not being set by the short read. Resulting in a bogus error message. Author:

pgsql: pg_waldump: Fix error message for WAL files smaller than XLOG_BL

2022-02-25 Thread Andres Freund
pg_waldump: Fix error message for WAL files smaller than XLOG_BLCKSZ. When opening a WAL file smaller than XLOG_BLCKSZ (e.g. 0 bytes long) while determining the wal_segment_size, pg_waldump checked errno, despite errno not being set by the short read. Resulting in a bogus error message. Author:

pgsql: pg_waldump: Fix error message for WAL files smaller than XLOG_BL

2022-02-25 Thread Andres Freund
pg_waldump: Fix error message for WAL files smaller than XLOG_BLCKSZ. When opening a WAL file smaller than XLOG_BLCKSZ (e.g. 0 bytes long) while determining the wal_segment_size, pg_waldump checked errno, despite errno not being set by the short read. Resulting in a bogus error message. Author: