summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Eisentraut2017-04-05 04:38:25 +0000
committerPeter Eisentraut2017-04-05 04:38:25 +0000
commitafd79873a0b151bfbe5312acebfe361da09c11fd (patch)
tree57955f069c92898a61b579e34f25ad0c93024d71 /src
parent193f5f9e913f3ead6609cc99be82578e0dedd409 (diff)
Capitalize names of PLs consistently
Author: Daniel Gustafsson <daniel@yesql.se>
Diffstat (limited to 'src')
-rw-r--r--src/backend/access/transam/README.parallel2
-rw-r--r--src/backend/executor/spi.c4
-rw-r--r--src/backend/parser/gram.y6
-rw-r--r--src/bin/initdb/initdb.c2
-rw-r--r--src/include/parser/scanner.h2
-rw-r--r--src/pl/plpgsql/src/Makefile2
-rw-r--r--src/pl/plpgsql/src/pl_gram.y4
-rw-r--r--src/pl/tcl/Makefile2
-rw-r--r--src/pl/tcl/pltcl.c2
9 files changed, 13 insertions, 13 deletions
diff --git a/src/backend/access/transam/README.parallel b/src/backend/access/transam/README.parallel
index db9ac3d504..4d98f4e65d 100644
--- a/src/backend/access/transam/README.parallel
+++ b/src/backend/access/transam/README.parallel
@@ -154,7 +154,7 @@ parallelism was started before all parallel workers have exited; and it's even
more clearly crazy for a parallel worker to try to subcommit or subabort the
current subtransaction and execute in some other transaction context than was
present in the initiating backend. It might be practical to allow internal
-sub-transactions (e.g. to implement a PL/pgsql EXCEPTION block) to be used in
+sub-transactions (e.g. to implement a PL/pgSQL EXCEPTION block) to be used in
parallel mode, provided that they are XID-less, because other backends
wouldn't really need to know about those transactions or do anything
differently because of them. Right now, we don't even allow that.
diff --git a/src/backend/executor/spi.c b/src/backend/executor/spi.c
index 3a89ccd913..ca547dc6d9 100644
--- a/src/backend/executor/spi.c
+++ b/src/backend/executor/spi.c
@@ -1582,7 +1582,7 @@ SPI_result_code_string(int code)
* SPI_plan_get_plan_sources --- get a SPI plan's underlying list of
* CachedPlanSources.
*
- * This is exported so that pl/pgsql can use it (this beats letting pl/pgsql
+ * This is exported so that PL/pgSQL can use it (this beats letting PL/pgSQL
* look directly into the SPIPlan for itself). It's not documented in
* spi.sgml because we'd just as soon not have too many places using this.
*/
@@ -1598,7 +1598,7 @@ SPI_plan_get_plan_sources(SPIPlanPtr plan)
* if the SPI plan contains exactly one CachedPlanSource. If not,
* return NULL. Caller is responsible for doing ReleaseCachedPlan().
*
- * This is exported so that pl/pgsql can use it (this beats letting pl/pgsql
+ * This is exported so that PL/pgSQL can use it (this beats letting PL/pgSQL
* look directly into the SPIPlan for itself). It's not documented in
* spi.sgml because we'd just as soon not have too many places using this.
*/
diff --git a/src/backend/parser/gram.y b/src/backend/parser/gram.y
index 9d53a29ad2..5ecb6997b3 100644
--- a/src/backend/parser/gram.y
+++ b/src/backend/parser/gram.y
@@ -584,11 +584,11 @@ static Node *makeRecursiveViewSelect(char *relname, List *aliases, Node *query);
/*
* Non-keyword token types. These are hard-wired into the "flex" lexer.
* They must be listed first so that their numeric codes do not depend on
- * the set of keywords. PL/pgsql depends on this so that it can share the
- * same lexer. If you add/change tokens here, fix PL/pgsql to match!
+ * the set of keywords. PL/pgSQL depends on this so that it can share the
+ * same lexer. If you add/change tokens here, fix PL/pgSQL to match!
*
* DOT_DOT is unused in the core SQL grammar, and so will always provoke
- * parse errors. It is needed by PL/pgsql.
+ * parse errors. It is needed by PL/pgSQL.
*/
%token <str> IDENT FCONST SCONST BCONST XCONST Op
%token <ival> ICONST PARAM
diff --git a/src/bin/initdb/initdb.c b/src/bin/initdb/initdb.c
index 8dde1e8f9d..d40ed412fc 100644
--- a/src/bin/initdb/initdb.c
+++ b/src/bin/initdb/initdb.c
@@ -1898,7 +1898,7 @@ setup_schema(FILE *cmdfd)
}
/*
- * load PL/pgsql server-side language
+ * load PL/pgSQL server-side language
*/
static void
load_plpgsql(FILE *cmdfd)
diff --git a/src/include/parser/scanner.h b/src/include/parser/scanner.h
index 7ca924cff3..74f1cc897f 100644
--- a/src/include/parser/scanner.h
+++ b/src/include/parser/scanner.h
@@ -3,7 +3,7 @@
* scanner.h
* API for the core scanner (flex machine)
*
- * The core scanner is also used by PL/pgsql, so we provide a public API
+ * The core scanner is also used by PL/pgSQL, so we provide a public API
* for it. However, the rest of the backend is only expected to use the
* higher-level API provided by parser.h.
*
diff --git a/src/pl/plpgsql/src/Makefile b/src/pl/plpgsql/src/Makefile
index e073b2abd0..95348179ac 100644
--- a/src/pl/plpgsql/src/Makefile
+++ b/src/pl/plpgsql/src/Makefile
@@ -1,6 +1,6 @@
#-------------------------------------------------------------------------
#
-# Makefile for the pl/pgsql procedural language
+# Makefile for the PL/pgSQL procedural language
#
# src/pl/plpgsql/src/Makefile
#
diff --git a/src/pl/plpgsql/src/pl_gram.y b/src/pl/plpgsql/src/pl_gram.y
index 29729df550..94f1f58593 100644
--- a/src/pl/plpgsql/src/pl_gram.y
+++ b/src/pl/plpgsql/src/pl_gram.y
@@ -2862,11 +2862,11 @@ make_execsql_stmt(int firsttoken, int location)
* clause lurking within it, and parse that via read_into_target().
*
* Because INTO is sometimes used in the main SQL grammar, we have to be
- * careful not to take any such usage of INTO as a pl/pgsql INTO clause.
+ * careful not to take any such usage of INTO as a PL/pgSQL INTO clause.
* There are currently three such cases:
*
* 1. SELECT ... INTO. We don't care, we just override that with the
- * pl/pgsql definition.
+ * PL/pgSQL definition.
*
* 2. INSERT INTO. This is relatively easy to recognize since the words
* must appear adjacently; but we can't assume INSERT starts the command,
diff --git a/src/pl/tcl/Makefile b/src/pl/tcl/Makefile
index 0275c125b1..b8971d3cc8 100644
--- a/src/pl/tcl/Makefile
+++ b/src/pl/tcl/Makefile
@@ -1,6 +1,6 @@
#-------------------------------------------------------------------------
#
-# Makefile for the pl/tcl procedural language
+# Makefile for the PL/Tcl procedural language
#
# src/pl/tcl/Makefile
#
diff --git a/src/pl/tcl/pltcl.c b/src/pl/tcl/pltcl.c
index 5a48e5d175..89bb46fb4a 100644
--- a/src/pl/tcl/pltcl.c
+++ b/src/pl/tcl/pltcl.c
@@ -2535,7 +2535,7 @@ pltcl_SPI_prepare(ClientData cdata, Tcl_Interp *interp,
* occur. FIXME someday.
************************************************************/
plan_cxt = AllocSetContextCreate(TopMemoryContext,
- "PL/TCL spi_prepare query",
+ "PL/Tcl spi_prepare query",
ALLOCSET_SMALL_SIZES);
MemoryContextSwitchTo(plan_cxt);
qdesc = (pltcl_query_desc *) palloc0(sizeof(pltcl_query_desc));