mirror of
https://github.com/postgres/postgres.git
synced 2025-08-21 10:42:50 +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:
@@ -263,7 +263,7 @@ typedef struct HashMetaPageData
|
||||
* allocated */
|
||||
uint32 hashm_firstfree; /* lowest-number free ovflpage (bit#) */
|
||||
uint32 hashm_nmaps; /* number of bitmap pages */
|
||||
RegProcedure hashm_procid; /* hash procedure id from pg_proc */
|
||||
RegProcedure hashm_procid; /* hash function id from pg_proc */
|
||||
uint32 hashm_spares[HASH_MAX_SPLITPOINTS]; /* spare pages before each
|
||||
* splitpoint */
|
||||
BlockNumber hashm_mapp[HASH_MAX_BITMAPS]; /* blknos of ovfl bitmaps */
|
||||
@@ -338,15 +338,15 @@ typedef HashMetaPageData *HashMetaPage;
|
||||
|
||||
/*
|
||||
* When a new operator class is declared, we require that the user supply
|
||||
* us with an amproc procedure for hashing a key of the new type, returning
|
||||
* a 32-bit hash value. We call this the "standard" hash procedure. We
|
||||
* also allow an optional "extended" hash procedure which accepts a salt and
|
||||
* us with an amproc function for hashing a key of the new type, returning
|
||||
* a 32-bit hash value. We call this the "standard" hash function. We
|
||||
* also allow an optional "extended" hash function which accepts a salt and
|
||||
* returns a 64-bit hash value. This is highly recommended but, for reasons
|
||||
* of backward compatibility, optional.
|
||||
*
|
||||
* When the salt is 0, the low 32 bits of the value returned by the extended
|
||||
* hash procedure should match the value that would have been returned by the
|
||||
* standard hash procedure.
|
||||
* hash function should match the value that would have been returned by the
|
||||
* standard hash function.
|
||||
*/
|
||||
#define HASHSTANDARD_PROC 1
|
||||
#define HASHEXTENDED_PROC 2
|
||||
|
Reference in New Issue
Block a user