diff --git a/doc/src/sgml/plpgsql.sgml b/doc/src/sgml/plpgsql.sgml index 2987a555a3..8c9bd28aa9 100644 --- a/doc/src/sgml/plpgsql.sgml +++ b/doc/src/sgml/plpgsql.sgml @@ -5782,6 +5782,19 @@ $$ LANGUAGE plpgsql STRICT IMMUTABLE; + + + <command>Global variables and constants</command> + + + The PL/pgSQL language has not packages + and then it has not package variables and package constants. The + PostgreSQL has schema variables and + immutable schema variables. The schema variables can be created + by CREATE VARIABLE described in . + + diff --git a/doc/src/sgml/ref/create_variable.sgml b/doc/src/sgml/ref/create_variable.sgml index 35a14c7c3c..1b1883a11a 100644 --- a/doc/src/sgml/ref/create_variable.sgml +++ b/doc/src/sgml/ref/create_variable.sgml @@ -58,7 +58,7 @@ CREATE [ { TEMPORARY | TEMP } ] [ IMMUTABLE ] VARIABLE [ IF NOT EXISTS ] IMMUTABLE - The value of variable cannot be changed. + The value of the variable cannot be changed. @@ -128,13 +128,12 @@ CREATE [ { TEMPORARY | TEMP } ] [ IMMUTABLE ] VARIABLE [ IF NOT EXISTS ] ON COMMIT DROP, ON TRANSACTIONAL END RESET - The ON COMMIT DROP clause specifies the bahaviour of -      temporary schema variable at transaction commit. With this clause the + The ON COMMIT DROP clause specifies the behaviour + of temporary schema variable at transaction commit. With this clause the      variable is dropped at commit time. The clause is only allowed -      for temporary variables. -      The ON TRANSACTIONAL END RESET clause enforces the - variable to be reset to its default value when the transaction is either - commited or rolled back. +      for temporary variables. The ON TRANSACTIONAL END RESET + clause enforces the variable to be reset to its default value when + the transaction is either commited or rolled back.