Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4bad5be

Browse files
committed
Fix SCO and change index name.
1 parent660f458 commit4bad5be

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

‎src/include/catalog/indexing.h

Lines changed: 5 additions & 5 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.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-
#defineAttributeNameIndex "pg_attribute_mkoidname_index"
37-
#defineAttributeNumIndex "pg_attribute_mkoidint2_index"
36+
#defineAttributeNameIndex "pg_attribute_relid_attnam_index"
37+
#defineAttributeNumIndex "pg_attribute_relid_attnum_index"
3838
#defineAttributeRelidIndex "pg_attribute_attrelid_index"
3939
#defineProcedureOidIndex "pg_proc_oid_index"
4040
#defineProcedureNameIndex "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_indexonpg_attributeusingbtree(mkoidname(attrelid,attname)oidname_ops));
104-
DECLARE_INDEX(pg_attribute_mkoidint2_indexonpg_attributeusingbtree(mkoidint2(attrelid,attnum)oidint2_ops));
103+
DECLARE_INDEX(pg_attribute_relid_attnam_indexonpg_attributeusingbtree(mkoidname(attrelid,attname)oidname_ops));
104+
DECLARE_INDEX(pg_attribute_relid_attnum_indexonpg_attributeusingbtree(mkoidint2(attrelid,attnum)oidint2_ops));
105105
DECLARE_INDEX(pg_attribute_attrelid_indexonpg_attributeusingbtree(attrelidoid_ops));
106106

107107
DECLARE_INDEX(pg_proc_oid_indexonpg_procusingbtree(oidoid_ops));

‎src/include/utils/memutils.h

Lines changed: 6 additions & 1 deletion
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
#defineDOUBLEALIGN(LEN)\
8687
(((long)(LEN) + (sizeof (double) - 1)) & ~(sizeof (double) -1))
8788

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

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp