mirror of
https://github.com/postgres/postgres.git
synced 2025-08-17 01:02:17 +03:00
doc: Update uses of the word "procedure"
Historically, the term procedure was used as a synonym for function in Postgres/PostgreSQL. Now we have procedures as separate objects from functions, so we need to clean up the documentation to not mix those terms. In particular, mentions of "trigger procedures" are changed to "trigger functions", and access method "support procedures" are changed to "support functions". (The latter already used FUNCTION in the SQL syntax anyway.) Also, the terminology in the SPI chapter has been cleaned up. A few tests, examples, and code comments are also adjusted to be consistent with documentation changes, but not everything. Reported-by: Peter Geoghegan <pg@bowt.ie> Reviewed-by: Jonathan S. Katz <jonathan.katz@excoventures.com>
This commit is contained in:
@@ -90,7 +90,7 @@ ginvalidate(Oid opclassoid)
|
||||
{
|
||||
ereport(INFO,
|
||||
(errcode(ERRCODE_INVALID_OBJECT_DEFINITION),
|
||||
errmsg("operator family \"%s\" of access method %s contains support procedure %s with different left and right input types",
|
||||
errmsg("operator family \"%s\" of access method %s contains support function %s with different left and right input types",
|
||||
opfamilyname, "gin",
|
||||
format_procedure(procform->amproc))));
|
||||
result = false;
|
||||
|
@@ -90,7 +90,7 @@ gistvalidate(Oid opclassoid)
|
||||
{
|
||||
ereport(INFO,
|
||||
(errcode(ERRCODE_INVALID_OBJECT_DEFINITION),
|
||||
errmsg("operator family \"%s\" of access method %s contains support procedure %s with different left and right input types",
|
||||
errmsg("operator family \"%s\" of access method %s contains support function %s with different left and right input types",
|
||||
opfamilyname, "gist",
|
||||
format_procedure(procform->amproc))));
|
||||
result = false;
|
||||
|
@@ -73,10 +73,10 @@ _hash_checkqual(IndexScanDesc scan, IndexTuple itup)
|
||||
}
|
||||
|
||||
/*
|
||||
* _hash_datum2hashkey -- given a Datum, call the index's hash procedure
|
||||
* _hash_datum2hashkey -- given a Datum, call the index's hash function
|
||||
*
|
||||
* The Datum is assumed to be of the index's column type, so we can use the
|
||||
* "primary" hash procedure that's tracked for us by the generic index code.
|
||||
* "primary" hash function that's tracked for us by the generic index code.
|
||||
*/
|
||||
uint32
|
||||
_hash_datum2hashkey(Relation rel, Datum key)
|
||||
|
@@ -96,7 +96,7 @@ hashvalidate(Oid opclassoid)
|
||||
{
|
||||
ereport(INFO,
|
||||
(errcode(ERRCODE_INVALID_OBJECT_DEFINITION),
|
||||
errmsg("operator family \"%s\" of access method %s contains support procedure %s with different left and right input types",
|
||||
errmsg("operator family \"%s\" of access method %s contains support function %s with different left and right input types",
|
||||
opfamilyname, "hash",
|
||||
format_procedure(procform->amproc))));
|
||||
result = false;
|
||||
@@ -182,7 +182,7 @@ hashvalidate(Oid opclassoid)
|
||||
result = false;
|
||||
}
|
||||
|
||||
/* There should be relevant hash procedures for each datatype */
|
||||
/* There should be relevant hash functions for each datatype */
|
||||
if (!list_member_oid(hashabletypes, oprform->amoplefttype) ||
|
||||
!list_member_oid(hashabletypes, oprform->amoprighttype))
|
||||
{
|
||||
|
@@ -96,7 +96,7 @@ spgvalidate(Oid opclassoid)
|
||||
{
|
||||
ereport(INFO,
|
||||
(errcode(ERRCODE_INVALID_OBJECT_DEFINITION),
|
||||
errmsg("operator family \"%s\" of access method %s contains support procedure %s with different left and right input types",
|
||||
errmsg("operator family \"%s\" of access method %s contains support function %s with different left and right input types",
|
||||
opfamilyname, "spgist",
|
||||
format_procedure(procform->amproc))));
|
||||
result = false;
|
||||
|
Reference in New Issue
Block a user