Skip to content

Commit 249f6b4

Browse files
committed
formatting cleanup
1 parent 87af721 commit 249f6b4

File tree

2 files changed

+38
-44
lines changed

2 files changed

+38
-44
lines changed

src/backend/catalog/indexing.c

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/catalog/indexing.c,v 1.49 1999/11/01 02:29:25 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/catalog/indexing.c,v 1.50 1999/11/01 04:00:56 momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -50,21 +50,17 @@ char *Name_pg_type_indices[Num_pg_type_indices] = {TypeNameIndex,
5050
char *Name_pg_class_indices[Num_pg_class_indices] = {ClassNameIndex,
5151
ClassOidIndex};
5252
char *Name_pg_attrdef_indices[Num_pg_attrdef_indices] = {AttrDefaultIndex};
53-
5453
char *Name_pg_relcheck_indices[Num_pg_relcheck_indices] = {RelCheckIndex};
55-
5654
char *Name_pg_trigger_indices[Num_pg_trigger_indices] = {TriggerRelidIndex,
57-
TriggerConstrNameIndex,
58-
TriggerConstrRelidIndex};
59-
55+
TriggerConstrNameIndex, TriggerConstrRelidIndex};
6056
char *Name_pg_description_indices[Num_pg_description_indices] = {DescriptionObjIndex};
6157

6258

6359

6460
static HeapTuple CatalogIndexFetchTuple(Relation heapRelation,
65-
Relation idesc,
66-
ScanKey skey,
67-
int16 num_keys);
61+
Relation idesc,
62+
ScanKey skey,
63+
int16 num_keys);
6864

6965

7066
/*

src/include/catalog/indexing.h

Lines changed: 33 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
* Copyright (c) 1994, Regents of the University of California
99
*
10-
* $Id: indexing.h,v 1.26 1999/11/01 02:29:26 momjian Exp $
10+
* $Id: indexing.h,v 1.27 1999/11/01 04:00:57 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -19,15 +19,15 @@
1919
/*
2020
* Some definitions for indices on pg_attribute
2121
*/
22-
#define Num_pg_amop_indices 2
23-
#define Num_pg_attr_indices 3
22+
#define Num_pg_amop_indices 2
23+
#define Num_pg_attr_indices 3
2424
#define Num_pg_index_indices 1
25-
#define Num_pg_proc_indices 2
26-
#define Num_pg_type_indices 2
27-
#define Num_pg_class_indices 2
28-
#define Num_pg_attrdef_indices 1
29-
#define Num_pg_relcheck_indices 1
30-
#define Num_pg_trigger_indices 3
25+
#define Num_pg_proc_indices 2
26+
#define Num_pg_type_indices 2
27+
#define Num_pg_class_indices 2
28+
#define Num_pg_attrdef_indices 1
29+
#define Num_pg_relcheck_indices 1
30+
#define Num_pg_trigger_indices 3
3131
#define Num_pg_description_indices 1
3232

3333

@@ -36,22 +36,22 @@
3636
*/
3737
#define AccessMethodOpidIndex "pg_amop_opid_index"
3838
#define AccessMethodStrategyIndex "pg_amop_strategy_index"
39-
#define AttributeNameIndex "pg_attribute_relid_attnam_index"
40-
#define AttributeNumIndex "pg_attribute_relid_attnum_index"
41-
#define IndexRelidIndex "pg_index_indexrelid_index"
42-
#define AttributeRelidIndex "pg_attribute_attrelid_index"
43-
#define ProcedureOidIndex "pg_proc_oid_index"
44-
#define ProcedureNameIndex "pg_proc_proname_narg_type_index"
45-
#define TypeOidIndex "pg_type_oid_index"
46-
#define TypeNameIndex "pg_type_typname_index"
47-
#define ClassOidIndex "pg_class_oid_index"
48-
#define ClassNameIndex "pg_class_relname_index"
49-
#define AttrDefaultIndex "pg_attrdef_adrelid_index"
50-
#define RelCheckIndex "pg_relcheck_rcrelid_index"
51-
#define TriggerRelidIndex "pg_trigger_tgrelid_index"
52-
#define TriggerConstrNameIndex "pg_trigger_tgconstrname_index"
53-
#define TriggerConstrRelidIndex "pg_trigger_tgconstrrelid_index"
54-
#define DescriptionObjIndex "pg_description_objoid_index"
39+
#define AttributeNameIndex "pg_attribute_relid_attnam_index"
40+
#define AttributeNumIndex "pg_attribute_relid_attnum_index"
41+
#define IndexRelidIndex "pg_index_indexrelid_index"
42+
#define AttributeRelidIndex "pg_attribute_attrelid_index"
43+
#define ProcedureOidIndex "pg_proc_oid_index"
44+
#define ProcedureNameIndex "pg_proc_proname_narg_type_index"
45+
#define TypeOidIndex "pg_type_oid_index"
46+
#define TypeNameIndex "pg_type_typname_index"
47+
#define ClassOidIndex "pg_class_oid_index"
48+
#define ClassNameIndex "pg_class_relname_index"
49+
#define AttrDefaultIndex "pg_attrdef_adrelid_index"
50+
#define RelCheckIndex "pg_relcheck_rcrelid_index"
51+
#define TriggerRelidIndex "pg_trigger_tgrelid_index"
52+
#define TriggerConstrNameIndex "pg_trigger_tgconstrname_index"
53+
#define TriggerConstrRelidIndex "pg_trigger_tgconstrrelid_index"
54+
#define DescriptionObjIndex "pg_description_objoid_index"
5555

5656
extern char *Name_pg_amop_indices[];
5757
extern char *Name_pg_attr_indices[];
@@ -75,25 +75,23 @@ extern char *IndexedCatalogNames[];
7575
extern void CatalogOpenIndices(int nIndices, char **names, Relation *idescs);
7676
extern void CatalogCloseIndices(int nIndices, Relation *idescs);
7777
extern void CatalogIndexInsert(Relation *idescs,
78-
int nIndices,
79-
Relation heapRelation,
80-
HeapTuple heapTuple);
78+
int nIndices,
79+
Relation heapRelation,
80+
HeapTuple heapTuple);
8181
extern bool CatalogHasIndex(char *catName, Oid catId);
8282

8383
extern HeapTuple AccessMethodOpidIndexScan(Relation heapRelation,
84-
Oid claid, Oid opopr, Oid opid);
84+
Oid claid, Oid opopr, Oid opid);
8585
extern HeapTuple AccessMethodStrategyIndexScan(Relation heapRelation,
86-
Oid opid, Oid claid, int2 opstrategy);
86+
Oid opid, Oid claid, int2 opstrategy);
8787
extern HeapTuple AttributeNameIndexScan(Relation heapRelation,
88-
Oid relid,
89-
char *attname);
88+
Oid relid, char *attname);
9089
extern HeapTuple AttributeNumIndexScan(Relation heapRelation,
91-
Oid relid,
92-
AttrNumber attnum);
90+
Oid relid, AttrNumber attnum);
9391
extern HeapTuple IndexRelidIndexScan(Relation heapRelation, Oid relid);
9492
extern HeapTuple ProcedureOidIndexScan(Relation heapRelation, Oid procId);
9593
extern HeapTuple ProcedureNameIndexScan(Relation heapRelation,
96-
char *procName, int2 nargs, Oid *argTypes);
94+
char *procName, int2 nargs, Oid *argTypes);
9795
extern HeapTuple TypeOidIndexScan(Relation heapRelation, Oid typeId);
9896
extern HeapTuple TypeNameIndexScan(Relation heapRelation, char *typeName);
9997
extern HeapTuple ClassNameIndexScan(Relation heapRelation, char *relName);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy