pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Put back pqsignal() as an exported libpq symbol.
2+ messages / 1 participants
[nested] [flat]

* pgsql: Put back pqsignal() as an exported libpq symbol.
@ 2019-10-10 18:25 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2019-10-10 18:25 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Put back pqsignal() as an exported libpq symbol.

This reverts commit f7ab80285.  Per discussion, we can't remove an
exported symbol without a SONAME bump, which we don't want to do.
In particular that breaks usage of current libpq.so with pre-9.3
versions of psql etc, which need libpq to export pqsignal().

As noted in that commit message, exporting the symbol from libpgport.a
won't work reliably; but actually we don't want to export src/port's
implementation anyway.  Any pre-9.3 client is going to be expecting the
definition that pqsignal() had before 9.3, which was that it didn't
set SA_RESTART for SIGALRM.  Hence, put back pqsignal() in a separate
source file in src/interfaces/libpq, and give it the old semantics.

Back-patch to v12.

Discussion: https://postgr.es/m/E1g5vmT-0003K1-6S@gemulon.postgresql.org

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/06a367c382d0a3595238eff2e777222dbc91911b

Modified Files
--------------
src/interfaces/libpq/Makefile          |  2 +-
src/interfaces/libpq/exports.txt       |  2 +-
src/interfaces/libpq/legacy-pqsignal.c | 57 ++++++++++++++++++++++++++++++++++
3 files changed, 59 insertions(+), 2 deletions(-)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* pgsql: Put back pqsignal() as an exported libpq symbol.
@ 2019-10-10 18:25 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2019-10-10 18:25 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Put back pqsignal() as an exported libpq symbol.

This reverts commit f7ab80285.  Per discussion, we can't remove an
exported symbol without a SONAME bump, which we don't want to do.
In particular that breaks usage of current libpq.so with pre-9.3
versions of psql etc, which need libpq to export pqsignal().

As noted in that commit message, exporting the symbol from libpgport.a
won't work reliably; but actually we don't want to export src/port's
implementation anyway.  Any pre-9.3 client is going to be expecting the
definition that pqsignal() had before 9.3, which was that it didn't
set SA_RESTART for SIGALRM.  Hence, put back pqsignal() in a separate
source file in src/interfaces/libpq, and give it the old semantics.

Back-patch to v12.

Discussion: https://postgr.es/m/E1g5vmT-0003K1-6S@gemulon.postgresql.org

Branch
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/7ed1bcaed6ecbb0760169ea193cbe70071012576

Modified Files
--------------
src/interfaces/libpq/Makefile          |  2 +-
src/interfaces/libpq/exports.txt       |  2 +-
src/interfaces/libpq/legacy-pqsignal.c | 57 ++++++++++++++++++++++++++++++++++
3 files changed, 59 insertions(+), 2 deletions(-)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2019-10-10 18:25 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-10-10 18:25 pgsql: Put back pqsignal() as an exported libpq symbol. Tom Lane <tgl@sss.pgh.pa.us>
2019-10-10 18:25 pgsql: Put back pqsignal() as an exported libpq symbol. Tom Lane <tgl@sss.pgh.pa.us>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox