]> granicus.if.org Git - postgresql/commitdiff
Fix quoting in help messages in uuid-ossp extension scripts.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 22 Nov 2013 17:07:53 +0000 (12:07 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 22 Nov 2013 17:07:53 +0000 (12:07 -0500)
The command we're telling people to type needs to include double-quoting
around the unfortunately-chosen extension name.  Twiddle the textual
quoting so that it looks somewhat sane.  Per gripe from roadrunner6.

contrib/uuid-ossp/uuid-ossp--1.0.sql
contrib/uuid-ossp/uuid-ossp--unpackaged--1.0.sql

index 45ada1b23bc30578496036c9f849e6bf0156e24f..042732065b309498b4a6b23db97e6e2120a92749 100644 (file)
@@ -1,7 +1,7 @@
 /* contrib/uuid-ossp/uuid-ossp--1.0.sql */
 
 -- complain if script is sourced in psql, rather than via CREATE EXTENSION
-\echo Use "CREATE EXTENSION uuid-ossp" to load this file. \quit
+\echo Use '''CREATE EXTENSION "uuid-ossp"''' to load this file. \quit
 
 CREATE FUNCTION uuid_nil()
 RETURNS uuid
index 5c0dbfef9c0f5b7abdbd3fccefe1264178ba9748..5776b6f93001e95e14aca04a00e6d976408474c8 100644 (file)
@@ -1,7 +1,7 @@
 /* contrib/uuid-ossp/uuid-ossp--unpackaged--1.0.sql */
 
 -- complain if script is sourced in psql, rather than via CREATE EXTENSION
-\echo Use "CREATE EXTENSION uuid-ossp" to load this file. \quit
+\echo Use '''CREATE EXTENSION "uuid-ossp"''' to load this file. \quit
 
 ALTER EXTENSION "uuid-ossp" ADD function uuid_nil();
 ALTER EXTENSION "uuid-ossp" ADD function uuid_ns_dns();