From 6f9e39bc9993c18686f0950f9b9657c7c97c7450 Mon Sep 17 00:00:00 2001
From: Fujii Masao <fujii@postgresql.org>
Date: Fri, 19 Jul 2013 04:13:01 +0900
Subject: [PATCH] Fix typo in update scripts for some contrib modules.

---
 contrib/dblink/dblink--1.0--1.1.sql                         | 2 +-
 contrib/hstore/hstore--1.0--1.1.sql                         | 2 +-
 contrib/pageinspect/pageinspect--1.0--1.1.sql               | 2 +-
 contrib/pg_stat_statements/pg_stat_statements--1.0--1.1.sql | 2 +-
 contrib/pg_trgm/pg_trgm--1.0--1.1.sql                       | 2 +-
 contrib/pgrowlocks/pgrowlocks--1.0--1.1.sql                 | 4 ++--
 6 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/contrib/dblink/dblink--1.0--1.1.sql b/contrib/dblink/dblink--1.0--1.1.sql
index c964f87a7bb..67293f0ef8e 100644
--- a/contrib/dblink/dblink--1.0--1.1.sql
+++ b/contrib/dblink/dblink--1.0--1.1.sql
@@ -1,6 +1,6 @@
 /* contrib/dblink/dblink--1.0--1.1.sql */
 
--- complain if script is sourced in psql, rather than via CREATE EXTENSION
+-- complain if script is sourced in psql, rather than via ALTER EXTENSION
 \echo Use "ALTER EXTENSION dblink UPDATE TO '1.1'" to load this file. \quit
 
 CREATE FUNCTION dblink_fdw_validator(
diff --git a/contrib/hstore/hstore--1.0--1.1.sql b/contrib/hstore/hstore--1.0--1.1.sql
index 3027ecfaa18..4e32a575c5f 100644
--- a/contrib/hstore/hstore--1.0--1.1.sql
+++ b/contrib/hstore/hstore--1.0--1.1.sql
@@ -1,6 +1,6 @@
 /* contrib/hstore/hstore--1.0--1.1.sql */
 
--- complain if script is sourced in psql, rather than via CREATE EXTENSION
+-- complain if script is sourced in psql, rather than via ALTER EXTENSION
 \echo Use "ALTER EXTENSION hstore UPDATE TO '1.1'" to load this file. \quit
 
 ALTER EXTENSION hstore DROP OPERATOR => (text, text);
diff --git a/contrib/pageinspect/pageinspect--1.0--1.1.sql b/contrib/pageinspect/pageinspect--1.0--1.1.sql
index 5997c580dac..49e83264d33 100644
--- a/contrib/pageinspect/pageinspect--1.0--1.1.sql
+++ b/contrib/pageinspect/pageinspect--1.0--1.1.sql
@@ -1,6 +1,6 @@
 /* contrib/pageinspect/pageinspect--1.0--1.1.sql */
 
--- complain if script is sourced in psql, rather than via ALTER EXTENSION UPDATE
+-- complain if script is sourced in psql, rather than via ALTER EXTENSION
 \echo Use "ALTER EXTENSION pageinspect UPDATE TO 1.1" to load this file. \quit
 
 DROP FUNCTION page_header(bytea);
diff --git a/contrib/pg_stat_statements/pg_stat_statements--1.0--1.1.sql b/contrib/pg_stat_statements/pg_stat_statements--1.0--1.1.sql
index 5662273e16e..5be281ea47a 100644
--- a/contrib/pg_stat_statements/pg_stat_statements--1.0--1.1.sql
+++ b/contrib/pg_stat_statements/pg_stat_statements--1.0--1.1.sql
@@ -1,7 +1,7 @@
 /* contrib/pg_stat_statements/pg_stat_statements--1.0--1.1.sql */
 
 -- complain if script is sourced in psql, rather than via ALTER EXTENSION
-\echo Use "ALTER EXTENSION pg_stat_statements UPDATE" to load this file. \quit
+\echo Use "ALTER EXTENSION pg_stat_statements UPDATE TO '1.1'" to load this file. \quit
 
 /* First we have to remove them from the extension */
 ALTER EXTENSION pg_stat_statements DROP VIEW pg_stat_statements;
diff --git a/contrib/pg_trgm/pg_trgm--1.0--1.1.sql b/contrib/pg_trgm/pg_trgm--1.0--1.1.sql
index 65bbb1cfde6..b4e3e26037b 100644
--- a/contrib/pg_trgm/pg_trgm--1.0--1.1.sql
+++ b/contrib/pg_trgm/pg_trgm--1.0--1.1.sql
@@ -1,6 +1,6 @@
 /* contrib/pg_trgm/pg_trgm--1.0--1.1.sql */
 
--- complain if script is sourced in psql, rather than via CREATE EXTENSION
+-- complain if script is sourced in psql, rather than via ALTER EXTENSION
 \echo Use "ALTER EXTENSION pg_trgm UPDATE TO '1.1'" to load this file. \quit
 
 ALTER OPERATOR FAMILY gist_trgm_ops USING gist ADD
diff --git a/contrib/pgrowlocks/pgrowlocks--1.0--1.1.sql b/contrib/pgrowlocks/pgrowlocks--1.0--1.1.sql
index d98cd807cae..3d5ca34c086 100644
--- a/contrib/pgrowlocks/pgrowlocks--1.0--1.1.sql
+++ b/contrib/pgrowlocks/pgrowlocks--1.0--1.1.sql
@@ -1,7 +1,7 @@
 /* contrib/pgrowlocks/pgrowlocks--1.0--1.1.sql */
 
--- complain if script is sourced in psql, rather than via CREATE EXTENSION
-\echo Use "CREATE EXTENSION pgrowlocks" to load this file. \quit
+-- complain if script is sourced in psql, rather than via ALTER EXTENSION
+\echo Use "ALTER EXTENSION pgrowlocks UPDATE TO '1.1'" to load this file. \quit
 
 ALTER EXTENSION pgrowlocks DROP FUNCTION pgrowlocks(text);
 DROP FUNCTION pgrowlocks(text);
-- 
GitLab