From 0d692a0dc9f0e532c67c577187fe5d7d323cb95b Mon Sep 17 00:00:00 2001 From: Robert Haas Date: Sat, 1 Jan 2011 23:48:11 -0500 Subject: Basic foreign table support. Foreign tables are a core component of SQL/MED. This commit does not provide a working SQL/MED infrastructure, because foreign tables cannot yet be queried. Support for foreign table scans will need to be added in a future patch. However, this patch creates the necessary system catalog structure, syntax support, and support for ancillary operations such as COMMENT and SECURITY LABEL. Shigeru Hanada, heavily revised by Robert Haas --- contrib/pgstattuple/pgstattuple.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'contrib/pgstattuple/pgstattuple.c') diff --git a/contrib/pgstattuple/pgstattuple.c b/contrib/pgstattuple/pgstattuple.c index 3a5d9c27b44..e5ddd870910 100644 --- a/contrib/pgstattuple/pgstattuple.c +++ b/contrib/pgstattuple/pgstattuple.c @@ -242,6 +242,9 @@ pgstat_relation(Relation rel, FunctionCallInfo fcinfo) case RELKIND_COMPOSITE_TYPE: err = "composite type"; break; + case RELKIND_FOREIGN_TABLE: + err = "foreign table"; + break; default: err = "unknown"; break; -- cgit v1.2.3