Skip to content

Commit 10cb39d

Browse files
committed
Fix typos in some error messages thrown by extension scripts when fed to psql.
Some of the many error messages introduced in 458857c missed 'FROM unpackaged'. Also e016b72 and 45ffeb7 forgot to quote extension version numbers. Backpatch to 9.1, just like 458857c which introduced the messages. Do so because the error messages thrown when the wrong command is copy & pasted aren't easy to understand.
1 parent 7b6407d commit 10cb39d

38 files changed

+38
-38
lines changed

contrib/btree_gin/btree_gin--unpackaged--1.0.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* contrib/btree_gin/btree_gin--unpackaged--1.0.sql */
22

33
-- complain if script is sourced in psql, rather than via CREATE EXTENSION
4-
\echo Use "CREATE EXTENSION btree_gin" to load this file. \quit
4+
\echo Use "CREATE EXTENSION btree_gin FROM unpackaged" to load this file. \quit
55

66
ALTER EXTENSION btree_gin ADD function gin_btree_consistent(internal,smallint,anyelement,integer,internal,internal);
77
ALTER EXTENSION btree_gin ADD function gin_extract_value_int2(smallint,internal);

contrib/btree_gist/btree_gist--unpackaged--1.0.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* contrib/btree_gist/btree_gist--unpackaged--1.0.sql */
22

33
-- complain if script is sourced in psql, rather than via CREATE EXTENSION
4-
\echo Use "CREATE EXTENSION btree_gist" to load this file. \quit
4+
\echo Use "CREATE EXTENSION btree_gist FROM unpackaged" to load this file. \quit
55

66
ALTER EXTENSION btree_gist ADD type gbtreekey4;
77
ALTER EXTENSION btree_gist ADD function gbtreekey4_in(cstring);

contrib/chkpass/chkpass--unpackaged--1.0.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* contrib/chkpass/chkpass--unpackaged--1.0.sql */
22

33
-- complain if script is sourced in psql, rather than via CREATE EXTENSION
4-
\echo Use "CREATE EXTENSION chkpass" to load this file. \quit
4+
\echo Use "CREATE EXTENSION chkpass FROM unpackaged" to load this file. \quit
55

66
ALTER EXTENSION chkpass ADD type chkpass;
77
ALTER EXTENSION chkpass ADD function chkpass_in(cstring);

contrib/citext/citext--unpackaged--1.0.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* contrib/citext/citext--unpackaged--1.0.sql */
22

33
-- complain if script is sourced in psql, rather than via CREATE EXTENSION
4-
\echo Use "CREATE EXTENSION citext" to load this file. \quit
4+
\echo Use "CREATE EXTENSION citext FROM unpackaged" to load this file. \quit
55

66
ALTER EXTENSION citext ADD type citext;
77
ALTER EXTENSION citext ADD function citextin(cstring);

contrib/cube/cube--unpackaged--1.0.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* contrib/cube/cube--unpackaged--1.0.sql */
22

33
-- complain if script is sourced in psql, rather than via CREATE EXTENSION
4-
\echo Use "CREATE EXTENSION cube" to load this file. \quit
4+
\echo Use "CREATE EXTENSION cube FROM unpackaged" to load this file. \quit
55

66
ALTER EXTENSION cube ADD type cube;
77
ALTER EXTENSION cube ADD function cube_in(cstring);

contrib/dblink/dblink--unpackaged--1.0.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* contrib/dblink/dblink--unpackaged--1.0.sql */
22

33
-- complain if script is sourced in psql, rather than via CREATE EXTENSION
4-
\echo Use "CREATE EXTENSION dblink" to load this file. \quit
4+
\echo Use "CREATE EXTENSION dblink FROM unpackaged" to load this file. \quit
55

66
ALTER EXTENSION dblink ADD function dblink_connect(text);
77
ALTER EXTENSION dblink ADD function dblink_connect(text,text);

contrib/dict_int/dict_int--unpackaged--1.0.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* contrib/dict_int/dict_int--unpackaged--1.0.sql */
22

33
-- complain if script is sourced in psql, rather than via CREATE EXTENSION
4-
\echo Use "CREATE EXTENSION dict_int" to load this file. \quit
4+
\echo Use "CREATE EXTENSION dict_int FROM unpackaged" to load this file. \quit
55

66
ALTER EXTENSION dict_int ADD function dintdict_init(internal);
77
ALTER EXTENSION dict_int ADD function dintdict_lexize(internal,internal,internal,internal);

contrib/dict_xsyn/dict_xsyn--unpackaged--1.0.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* contrib/dict_xsyn/dict_xsyn--unpackaged--1.0.sql */
22

33
-- complain if script is sourced in psql, rather than via CREATE EXTENSION
4-
\echo Use "CREATE EXTENSION dict_xsyn" to load this file. \quit
4+
\echo Use "CREATE EXTENSION dict_xsyn FROM unpackaged" to load this file. \quit
55

66
ALTER EXTENSION dict_xsyn ADD function dxsyn_init(internal);
77
ALTER EXTENSION dict_xsyn ADD function dxsyn_lexize(internal,internal,internal,internal);

contrib/earthdistance/earthdistance--unpackaged--1.0.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* contrib/earthdistance/earthdistance--unpackaged--1.0.sql */
22

33
-- complain if script is sourced in psql, rather than via CREATE EXTENSION
4-
\echo Use "CREATE EXTENSION earthdistance" to load this file. \quit
4+
\echo Use "CREATE EXTENSION earthdistance FROM unpackaged" to load this file. \quit
55

66
ALTER EXTENSION earthdistance ADD function earth();
77
ALTER EXTENSION earthdistance ADD type earth;

contrib/fuzzystrmatch/fuzzystrmatch--unpackaged--1.0.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* contrib/fuzzystrmatch/fuzzystrmatch--unpackaged--1.0.sql */
22

33
-- complain if script is sourced in psql, rather than via CREATE EXTENSION
4-
\echo Use "CREATE EXTENSION fuzzystrmatch" to load this file. \quit
4+
\echo Use "CREATE EXTENSION fuzzystrmatch FROM unpackaged" to load this file. \quit
55

66
ALTER EXTENSION fuzzystrmatch ADD function levenshtein(text,text);
77
ALTER EXTENSION fuzzystrmatch ADD function levenshtein(text,text,integer,integer,integer);

0 commit comments

Comments
 (0)