Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 4bad5be

Browse files
committed
Fix SCO and change index name.
1 parent 660f458 commit 4bad5be

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

src/include/catalog/indexing.h

+5-5
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.12 1997/11/17 16:59:34 momjian Exp $
10+
* $Id: indexing.h,v 1.13 1998/01/11 21:03:01 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -33,8 +33,8 @@
3333
/*
3434
* Names of indices on system catalogs
3535
*/
36-
#define AttributeNameIndex "pg_attribute_mkoidname_index"
37-
#define AttributeNumIndex "pg_attribute_mkoidint2_index"
36+
#define AttributeNameIndex "pg_attribute_relid_attnam_index"
37+
#define AttributeNumIndex "pg_attribute_relid_attnum_index"
3838
#define AttributeRelidIndex "pg_attribute_attrelid_index"
3939
#define ProcedureOidIndex "pg_proc_oid_index"
4040
#define ProcedureNameIndex "pg_proc_proname_index"
@@ -100,8 +100,8 @@ extern HeapTuple ClassOidIndexScan(Relation heapRelation, Oid relId);
100100
* The keyword is DECLARE_INDEX every thing after that is just like in a
101101
* normal specification of the 'define index' POSTQUEL command.
102102
*/
103-
DECLARE_INDEX(pg_attribute_mkoidname_index on pg_attribute using btree(mkoidname(attrelid, attname) oidname_ops));
104-
DECLARE_INDEX(pg_attribute_mkoidint2_index on pg_attribute using btree(mkoidint2(attrelid, attnum) oidint2_ops));
103+
DECLARE_INDEX(pg_attribute_relid_attnam_index on pg_attribute using btree(mkoidname(attrelid, attname) oidname_ops));
104+
DECLARE_INDEX(pg_attribute_relid_attnum_index on pg_attribute using btree(mkoidint2(attrelid, attnum) oidint2_ops));
105105
DECLARE_INDEX(pg_attribute_attrelid_index on pg_attribute using btree(attrelid oid_ops));
106106

107107
DECLARE_INDEX(pg_proc_oid_index on pg_proc using btree(oid oid_ops));

src/include/utils/memutils.h

+6-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*
1616
* Copyright (c) 1994, Regents of the University of California
1717
*
18-
* $Id: memutils.h,v 1.11 1997/09/08 20:59:22 momjian Exp $
18+
* $Id: memutils.h,v 1.12 1998/01/11 21:03:10 momjian Exp $
1919
*
2020
* NOTES
2121
* some of the information in this file will be moved to
@@ -82,11 +82,16 @@ s...)
8282
(((long)(LEN) + (sizeof (long) - 1)) & ~(sizeof (long) -1))
8383
#endif
8484

85+
#if ! defined(sco)
8586
#define DOUBLEALIGN(LEN)\
8687
(((long)(LEN) + (sizeof (double) - 1)) & ~(sizeof (double) -1))
8788

8889
#define MAXALIGN(LEN)\
8990
(((long)(LEN) + (sizeof (double) - 1)) & ~(sizeof (double) -1))
91+
#else
92+
#define DOUBLEALIGN(LEN) INTALIGN(LEN)
93+
#define MAXALIGN(LEN) INTALIGN(LEN)
94+
#endif
9095

9196
/*****************************************************************************
9297
* oset.h -- Fixed format ordered set definitions. *

0 commit comments

Comments
 (0)