Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 68c23cb

Browse files
committed
Improve consistency of comments in system catalog headers.
Use the term "system catalog" rather than "system relation" in assorted places where it's clearly referring to a table rather than, say, an index. Use more natural word order in the header boilerplate, improve some of the one-liner catalog descriptions, and fix assorted random deviations from the normal boilerplate. All purely neatnik-ism, but why not. John Naylor, some additional cleanup by me Discussion: https://postgr.es/m/CAJVSVGUeJmFB3h-NJ18P32NPa+kzC165nm7GSoGHfPaN80Wxcw@mail.gmail.com
1 parent e5d8399 commit 68c23cb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+136
-97
lines changed

src/backend/catalog/genbki.pl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -535,8 +535,8 @@ sub gen_pg_attribute
535535
{
536536
my $table = $catalogs{$table_name};
537537

538-
# Currently, all bootstrapped relations also need schemapg.h
539-
# entries, so skip if the relation isn't to be in schemapg.h.
538+
# Currently, all bootstrap catalogs also need schemapg.h
539+
# entries, so skip if it isn't to be in schemapg.h.
540540
next if !$table->{schema_macro};
541541

542542
$schemapg_entries{$table_name} = [];
@@ -769,7 +769,7 @@ sub form_pg_type_symbol
769769
{
770770
my $typename = shift;
771771

772-
# Skip for rowtypes of bootstrap tables, since they have their
772+
# Skip for rowtypes of bootstrap catalogs, since they have their
773773
# own naming convention defined elsewhere.
774774
return
775775
if $typename eq 'pg_type'

src/include/catalog/pg_aggregate.dat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#----------------------------------------------------------------------
22
#
33
# pg_aggregate.dat
4-
# Initial contents of the pg_aggregate system relation.
4+
# Initial contents of the pg_aggregate system catalog.
55
#
66
# Portions Copyright (c) 1996-2018, PostgreSQL Global Development Group
77
# Portions Copyright (c) 1994, Regents of the University of California

src/include/catalog/pg_aggregate.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*-------------------------------------------------------------------------
22
*
33
* pg_aggregate.h
4-
* definition of the system "aggregate" relation (pg_aggregate)
4+
* definition of the "aggregate" system catalog (pg_aggregate)
55
*
66
*
77
* Portions Copyright (c) 1996-2018, PostgreSQL Global Development Group

src/include/catalog/pg_am.dat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#----------------------------------------------------------------------
22
#
33
# pg_am.dat
4-
# Initial contents of the pg_am system relation.
4+
# Initial contents of the pg_am system catalog.
55
#
66
# Portions Copyright (c) 1996-2018, PostgreSQL Global Development Group
77
# Portions Copyright (c) 1994, Regents of the University of California

src/include/catalog/pg_am.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*-------------------------------------------------------------------------
22
*
33
* pg_am.h
4-
* definition of the system "access method" relation (pg_am)
4+
* definition of the "access method" system catalog (pg_am)
55
*
66
*
77
* Portions Copyright (c) 1996-2018, PostgreSQL Global Development Group

src/include/catalog/pg_amop.dat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#----------------------------------------------------------------------
22
#
33
# pg_amop.dat
4-
# Initial contents of the pg_amop system relation.
4+
# Initial contents of the pg_amop system catalog.
55
#
66
# Portions Copyright (c) 1996-2018, PostgreSQL Global Development Group
77
# Portions Copyright (c) 1994, Regents of the University of California

src/include/catalog/pg_amop.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*-------------------------------------------------------------------------
22
*
33
* pg_amop.h
4-
* definition of the system "amop" relation (pg_amop)
4+
* definition of the "access method operator" system catalog (pg_amop)
55
*
66
* The amop table identifies the operators associated with each index operator
77
* family and operator class (classes are subsets of families). An associated

src/include/catalog/pg_amproc.dat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#----------------------------------------------------------------------
22
#
33
# pg_amproc.dat
4-
# Initial contents of the pg_amproc system relation.
4+
# Initial contents of the pg_amproc system catalog.
55
#
66
# Portions Copyright (c) 1996-2018, PostgreSQL Global Development Group
77
# Portions Copyright (c) 1994, Regents of the University of California

src/include/catalog/pg_amproc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*-------------------------------------------------------------------------
22
*
33
* pg_amproc.h
4-
* definition of the system "amproc" relation (pg_amproc)
4+
* definition of the "access method procedure" system catalog (pg_amproc)
55
*
66
* The amproc table identifies support procedures associated with index
77
* operator families and classes. These procedures can't be listed in pg_amop

src/include/catalog/pg_attrdef.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*-------------------------------------------------------------------------
22
*
33
* pg_attrdef.h
4-
* definition of the system "attribute defaults" relation (pg_attrdef)
4+
* definition of the "attribute defaults" system catalog (pg_attrdef)
55
*
66
*
77
* Portions Copyright (c) 1996-2018, PostgreSQL Global Development Group

0 commit comments

Comments
 (0)