Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc92f7c6

Browse files
committed
Don't qualify type pg_catalog.text in extend-extensions-example.
Extension scripts begin execution with pg_catalog at the front of thesearch path, so type names reliably refer to pg_catalog. Remove thesesuperfluous qualifications. Earlier <programlisting> of this <sect1>already omitted them. Back-patch to 9.3 (all supported versions).
1 parent52f3a9d commitc92f7c6

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

‎doc/src/sgml/extend.sgml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1010,13 +1010,12 @@ SELECT * FROM pg_extension_update_paths('<replaceable>extension_name</replaceabl
10101010
-- complain if script is sourced in psql, rather than via CREATE EXTENSION
10111011
\echo Use "CREATE EXTENSION pair" to load this file. \quit
10121012

1013-
CREATE TYPE pair AS ( kpg_catalog.text, vpg_catalog.text );
1013+
CREATE TYPE pair AS ( k text, v text );
10141014

1015-
CREATE OR REPLACE FUNCTION pair(pg_catalog.text,pg_catalog.text)
1015+
CREATE OR REPLACE FUNCTION pair(text, text)
10161016
RETURNS pair LANGUAGE SQL AS 'SELECT ROW($1, $2)::@extschema@.pair;';
10171017

1018-
CREATE OPERATOR ~> (LEFTARG = pg_catalog.text,
1019-
RIGHTARG = pg_catalog.text, PROCEDURE = pair);
1018+
CREATE OPERATOR ~> (LEFTARG = text, RIGHTARG = text, PROCEDURE = pair);
10201019

10211020
-- "SET search_path" is easy to get right, but qualified names perform better.
10221021
CREATE OR REPLACE FUNCTION lower(pair)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp