Extension uninstall issue with PGXS

From: Philippe BEAUDOIN <phb(dot)emaj(at)free(dot)fr>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Cc: Thibaud Walkowiak <thibaud(dot)walkowiak(at)dalibo(dot)com>
Subject: Extension uninstall issue with PGXS
Date: 2024-05-06 08:29:12
Message-ID: f2645de1-b3b0-43b2-b467-bc3e83bb4898@free.fr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi all,

I am in trouble when building an extension with PGXS. At uninstall time,
the documentation and script files are not removed.

The specificity of my distribution tree is that these script and
documentation files are located into subdirectories. So in the Makefile,
the DOCS and SCRIPTS variables are described like DATA, with something like:
DOCS         = \$(wildcard doc/*)
SCRIPTS      = \$(wildcard script/*)

At install time, all files of both subdirectories are correctly copied
into the DOCDIR and BINDIR directories respectively.
But at uninstall time, these files are not removed.

Attached is a simple test case that reproduces the issue, with the
execution result on my PC.

As you can see, the uninstall step tries to remove files from DOCDIR and
BINDIR, using the original subdirectories.

I don't know if this can be considered as a bug or if it is a functional
limitation or if there is a better way to code the Makefile.

Kind regards. Philippe.

Attachment Content-Type Size
testcase.sh application/x-shellscript 1.5 KB
testcase.out text/plain 1.5 KB

Browse pgsql-general by date

  From Date Subject
Next Message Matthias Apitz 2024-05-06 11:05:18 problem loading shared lib pg_tde.so
Previous Message Prasanna Chavan 2024-05-06 08:15:13 Clarification Needed on Postgresql License Requirement for Hybrid Environment Cluster Configuration