1
0
mirror of https://github.com/postgres/postgres.git synced 2026-10-23 13:29:09 +03:00
Files
postgres/contrib/pg_plan_advice/Makefile
Robert Haas 53e6f51eef pg_plan_advice: Don't generate FOREIGN_JOIN advice for a single relation.
A foreign scan can target a single relation while still reaching the
fs_relids branch of pgpa_build_scan() -- for example, when postgres_fdw
pushes an aggregate down over one foreign table. In that case, no
advice should be emitted.

Author: Mahendra Singh Thalor <mahi6run@gmail.com>
Co-authored-by: Robert Haas <rhaas@postgresql.org>
Discussion: http://postgr.es/m/CAKYtNAofuAJBz6++SeikpCb=Y=MO1QgEuZNJ+KZOP2johF1r4Q@mail.gmail.com
2026-07-02 15:45:22 -04:00

50 lines
1.1 KiB
Makefile

# contrib/pg_plan_advice/Makefile
MODULE_big = pg_plan_advice
OBJS = \
$(WIN32RES) \
pg_plan_advice.o \
pgpa_ast.o \
pgpa_identifier.o \
pgpa_join.o \
pgpa_output.o \
pgpa_parser.o \
pgpa_planner.o \
pgpa_scan.o \
pgpa_scanner.o \
pgpa_trove.o \
pgpa_walker.o
HEADERS_pg_plan_advice = pg_plan_advice.h
PGFILEDESC = "pg_plan_advice - help the planner get the right plan"
REGRESS = alternatives gather join_order join_strategy partitionwise \
prepared scan semijoin syntax
TAP_TESTS = 1
EXTRA_INSTALL = contrib/tsm_system_time contrib/postgres_fdw
EXTRA_CLEAN = pgpa_parser.h pgpa_parser.c pgpa_scanner.c
ifdef USE_PGXS
PG_CONFIG = pg_config
PGXS := $(shell $(PG_CONFIG) --pgxs)
include $(PGXS)
else
subdir = contrib/pg_plan_advice
top_builddir = ../..
include $(top_builddir)/src/Makefile.global
include $(top_srcdir)/contrib/contrib-global.mk
endif
# See notes in src/backend/parser/Makefile about the following two rules
pgpa_parser.h: pgpa_parser.c
touch $@
pgpa_parser.c: BISONFLAGS += -d
# Force these dependencies to be known even without dependency info built:
pgpa_parser.o pgpa_scanner.o: pgpa_parser.h