Re: Support "make check" for PGXS extensions - Mailing list pgsql-hackers

From David E. Wheeler
Subject Re: Support "make check" for PGXS extensions
Date
Msg-id 9137D788-F622-4B2F-9EC1-487A035A4256@justatheory.com
Whole thread Raw
In response to Support "make check" for PGXS extensions  (Peter Eisentraut <peter@eisentraut.org>)
Responses Re: Support "make check" for PGXS extensions
Re: Support "make check" for PGXS extensions
List pgsql-hackers
On Mar 20, 2025, at 09:06, Peter Eisentraut <peter@eisentraut.org> wrote:
>
> This is a quick follow-up to the extension_control_path patch.  With this little additional patch, you can now run
"makecheck" in PGXS-using extensions (instead of having to do make install; make installcheck with a running instance).
I think this would be very convenient for extension development. 

I LOVE this idea! But one thing to keep in mind is that not all files are in CURDIR. Might make sense to use `dirname`
onall the entires in DATA and MODULES to figure out what to put in the search paths. I usually have my C files in `src`
andSQL files in `sql`, and wrote the PGXN tutorial[1] back in 2012 with that pattern (for better or worse). A simple
exampleis the envvar extension[2]: 

DATA         = $(wildcard sql/*.sql)
MODULES      = $(patsubst %.c,%,$(wildcard src/*.c))

Best,

David

[1]: https://manager.pgxn.org/howto#neworder
[2]: https://github.com/theory/pg-envvar/blob/main/Makefile


Attachment

pgsql-hackers by date:

Previous
From: Fujii Masao
Date:
Subject: Re: Change log level for notifying hot standby is waiting non-overflowed snapshot
Next
From: Alvaro Herrera
Date:
Subject: Re: why there is not VACUUM FULL CONCURRENTLY?