Re: remove ancient pre-dlopen dynloader code

2018-09-06 Thread Thomas Munro
On Thu, Sep 6, 2018 at 1:16 AM Peter Eisentraut wrote: > I'm going to use this thread for a moment to work out some details with > the cfbot. > > The v2 patch I sent previously was created using git format-patch with > default settings. This detected a rename: > > rename src/{backend/port/dynloa

Re: remove ancient pre-dlopen dynloader code

2018-09-06 Thread Tom Lane
Peter Eisentraut writes: > On 06/09/2018 10:16, Peter Eisentraut wrote: >> The v3 patch attached here was made with git format-patch --no-renames. >> Let's see how that works out. > That worked, and the patch has been committed. Sure enough, gaur's not happy. I'll take a look in a bit.

Re: remove ancient pre-dlopen dynloader code

2018-09-06 Thread Peter Eisentraut
On 06/09/2018 10:16, Peter Eisentraut wrote: > The v3 patch attached here was made with git format-patch --no-renames. > Let's see how that works out. That worked, and the patch has been committed. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support,

Re: remove ancient pre-dlopen dynloader code

2018-09-06 Thread Peter Eisentraut
On 01/09/2018 06:51, Peter Eisentraut wrote: >> How about this: We only have two nonstandard dlopen() implementations >> left: Windows and (old) HP-UX. We move those into src/port/dlopen.c and >> treat it like a regular libpgport member. That gets rid of all those >> duplicative empty per-platfor

Re: remove ancient pre-dlopen dynloader code

2018-08-31 Thread Peter Eisentraut
On 31/08/2018 10:52, Peter Eisentraut wrote: > On 16/08/2018 16:10, Andres Freund wrote: If I had my druthers, we'd just remove all that configure magic for selecting these files and just use ifdefs. Personally I find it occasionally that they're linked into place, rather than built

Re: remove ancient pre-dlopen dynloader code

2018-08-31 Thread Andres Freund
On 2018-08-31 10:52:18 +0200, Peter Eisentraut wrote: > How about this: We only have two nonstandard dlopen() implementations > left: Windows and (old) HP-UX. We move those into src/port/dlopen.c and > treat it like a regular libpgport member. That gets rid of all those > duplicative empty per-pl

Re: remove ancient pre-dlopen dynloader code

2018-08-31 Thread Tom Lane
Peter Eisentraut writes: > How about this: We only have two nonstandard dlopen() implementations > left: Windows and (old) HP-UX. We move those into src/port/dlopen.c and > treat it like a regular libpgport member. That gets rid of all those > duplicative empty per-platform files. +1. I eyebal

Re: remove ancient pre-dlopen dynloader code

2018-08-31 Thread Peter Eisentraut
On 16/08/2018 16:10, Andres Freund wrote: >>> If I had my druthers, we'd just remove all that configure magic for >>> selecting these files and just use ifdefs. Personally I find it >>> occasionally that they're linked into place, rather than built under >>> their original name. >> >> Even if we a

Re: remove ancient pre-dlopen dynloader code

2018-08-16 Thread Andres Freund
On 2018-08-16 10:07:04 -0400, Tom Lane wrote: > Andres Freund writes: > > On 2018-08-16 09:22:14 -0400, Tom Lane wrote: > >> The lazy man's way to get rid of it would be to put something like > >> "int bogus = 0;" in the empty dynloader.c files. Better would be > >> to not have the empty .c files

Re: remove ancient pre-dlopen dynloader code

2018-08-16 Thread Tom Lane
Andres Freund writes: > On 2018-08-16 09:22:14 -0400, Tom Lane wrote: >> The lazy man's way to get rid of it would be to put something like >> "int bogus = 0;" in the empty dynloader.c files. Better would be >> to not have the empty .c files at all, but I'm not sure how much >> we'd have to conto

Re: remove ancient pre-dlopen dynloader code

2018-08-16 Thread Andres Freund
On 2018-08-16 09:22:14 -0400, Tom Lane wrote: > Andres Freund writes: > > This now generates a super nitpicky warning on at at least some linux + > > clang configurations. I use -Weverything plus a lot of -Wno-*, and this > > change added: > > dynloader.c:7:4: warning: ISO C requires a translation

Re: remove ancient pre-dlopen dynloader code

2018-08-16 Thread Tom Lane
Andres Freund writes: > This now generates a super nitpicky warning on at at least some linux + > clang configurations. I use -Weverything plus a lot of -Wno-*, and this > change added: > dynloader.c:7:4: warning: ISO C requires a translation unit to contain at > least one declaration [-Wempty-tr

Re: remove ancient pre-dlopen dynloader code

2018-08-16 Thread Andres Freund
On 2018-08-09 10:03:43 -0400, Tom Lane wrote: > Andres Freund writes: > > On 2018-08-09 14:29:08 +0200, Peter Eisentraut wrote: > >> The non-dlopen dynloader code for several operating systems is in some > >> cases decades obsolete, and I have had some doubts that it would even > >> compile anymor

Re: remove ancient pre-dlopen dynloader code

2018-08-09 Thread Tom Lane
Andres Freund writes: > On 2018-08-09 14:29:08 +0200, Peter Eisentraut wrote: >> The non-dlopen dynloader code for several operating systems is in some >> cases decades obsolete, and I have had some doubts that it would even >> compile anymore. Attached are patches for each operating system >> re

Re: remove ancient pre-dlopen dynloader code

2018-08-09 Thread Andres Freund
Hi, On 2018-08-09 14:29:08 +0200, Peter Eisentraut wrote: > The non-dlopen dynloader code for several operating systems is in some > cases decades obsolete, and I have had some doubts that it would even > compile anymore. Attached are patches for each operating system > removing the obsolete code

remove ancient pre-dlopen dynloader code

2018-08-09 Thread Peter Eisentraut
The non-dlopen dynloader code for several operating systems is in some cases decades obsolete, and I have had some doubts that it would even compile anymore. Attached are patches for each operating system removing the obsolete code, with references to when it became obsolete. -- Peter Eisentraut