mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-12 18:34:36 +08:00
c08d82f38e
The contrib extensions pageinspect, pg_visibility and pgstattuple only work against regular relations which have storage. They don't work against foreign tables, partitioned (parent) tables, views, et al. Add checks to the user-callable functions to return a useful error message to the user if they mistakenly pass an invalid relation to a function which doesn't accept that kind of relation. In passing, improve some of the existing checks to use ereport() instead of elog(), add a function to consolidate common checks where appropriate, and add some regression tests. Author: Amit Langote, with various changes by me Reviewed by: Michael Paquier and Corey Huinker Discussion: https://postgr.es/m/ab91fd9d-4751-ee77-c87b-4dd704c1e59c@lab.ntt.co.jp
22 lines
511 B
Makefile
22 lines
511 B
Makefile
# contrib/pg_visibility/Makefile
|
|
|
|
MODULE_big = pg_visibility
|
|
OBJS = pg_visibility.o $(WIN32RES)
|
|
|
|
EXTENSION = pg_visibility
|
|
DATA = pg_visibility--1.1.sql pg_visibility--1.0--1.1.sql
|
|
PGFILEDESC = "pg_visibility - page visibility information"
|
|
|
|
REGRESS = pg_visibility
|
|
|
|
ifdef USE_PGXS
|
|
PG_CONFIG = pg_config
|
|
PGXS := $(shell $(PG_CONFIG) --pgxs)
|
|
include $(PGXS)
|
|
else
|
|
subdir = contrib/pg_visibility
|
|
top_builddir = ../..
|
|
include $(top_builddir)/src/Makefile.global
|
|
include $(top_srcdir)/contrib/contrib-global.mk
|
|
endif
|