Skip to content

Commit 3c09d11

Browse files
committed
Update DECLARE_INDEX documentation
Update source code comment changes belonging to the changes in 6a6389a. Discussion: https://www.postgresql.org/message-id/flat/75ae5875-3abc-dafc-8aec-73247ed41cde@eisentraut.org
1 parent 4f3514f commit 3c09d11

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/include/catalog/genbki.h

+6-5
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,13 @@
7171
* DECLARE_UNIQUE_INDEX_PKEY. ("PKEY" marks the index as being the catalog's
7272
* primary key; currently this is only cosmetically different from a regular
7373
* unique index. By convention, we usually make a catalog's OID column its
74-
* pkey, if it has one.) The first two arguments are the index's name and
75-
* OID, the rest is much like a standard 'create index' SQL command.
74+
* pkey, if it has one.)
7675
*
77-
* For each index, we also provide a #define for its OID. References to
78-
* the index in the C code should always use these #defines, not the actual
79-
* index name (much less the numeric OID).
76+
* The first two arguments are the index's name and OID. The third argument
77+
* is the name of a #define to generate for its OID. References to the index
78+
* in the C code should always use these #defines, not the actual index name
79+
* (much less the numeric OID). The rest is much like a standard 'create
80+
* index' SQL command.
8081
*
8182
* The macro definitions are just to keep the C compiler from spitting up.
8283
*/

0 commit comments

Comments
 (0)