From a1ffb012174d3dbd3b8b42bdba593f829d9b678e Mon Sep 17 00:00:00 2001 From: Heikki Linnakangas Date: Wed, 23 Dec 2009 12:24:16 +0000 Subject: Always pass catalog id to the options validator function specified in CREATE FOREIGN DATA WRAPPER. Arguably it wasn't a bug because the documentation said that it's passed the catalog ID or zero, but surely we should provide it when it's known. And there isn't currently any scenario where it's not known, and I can't imagine having one in the future either, so better remove the "or zero" escape hatch and always pass a valid catalog ID. Backpatch to 8.4. Martin Pihlak --- doc/src/sgml/ref/create_foreign_data_wrapper.sgml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/ref/create_foreign_data_wrapper.sgml b/doc/src/sgml/ref/create_foreign_data_wrapper.sgml index ee8b619a40e..c3fd2ad5e04 100644 --- a/doc/src/sgml/ref/create_foreign_data_wrapper.sgml +++ b/doc/src/sgml/ref/create_foreign_data_wrapper.sgml @@ -1,5 +1,5 @@ @@ -74,10 +74,9 @@ CREATE FOREIGN DATA WRAPPER name take two arguments: one of type text[], which will contain the array of options as stored in the system catalogs, and one of type oid, which will be the OID of the - system catalog containing the options, or zero if the context is - not known. The return type is ignored; the function should - indicate invalid options using - the ereport() function. + system catalog containing the options. The return type is ignored; + the function should indicate invalid options using the + ereport() function. -- cgit v1.2.3