Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
d0471244
Commit
d0471244
authored
Nov 17, 1997
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove 16 char limit on system table/index names. Rename system indexes.
parent
80c1e822
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
46 additions
and
58 deletions
+46
-58
src/backend/bootstrap/bootstrap.c
src/backend/bootstrap/bootstrap.c
+3
-3
src/backend/commands/view.c
src/backend/commands/view.c
+2
-14
src/backend/parser/parser.c
src/backend/parser/parser.c
+2
-2
src/backend/utils/cache/inval.c
src/backend/utils/cache/inval.c
+2
-2
src/backend/utils/cache/lsyscache.c
src/backend/utils/cache/lsyscache.c
+2
-2
src/backend/utils/cache/relcache.c
src/backend/utils/cache/relcache.c
+2
-2
src/include/catalog/indexing.h
src/include/catalog/indexing.h
+32
-31
src/include/catalog/pg_proc.h
src/include/catalog/pg_proc.h
+1
-2
No files found.
src/backend/bootstrap/bootstrap.c
View file @
d0471244
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/bootstrap/bootstrap.c,v 1.2
6 1997/09/18 20:20:04
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/bootstrap/bootstrap.c,v 1.2
7 1997/11/17 16:58:55
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -480,8 +480,8 @@ boot_openrel(char *relname)
...
@@ -480,8 +480,8 @@ boot_openrel(char *relname)
HeapScanDesc
sdesc
;
HeapScanDesc
sdesc
;
HeapTuple
tup
;
HeapTuple
tup
;
if
(
strlen
(
relname
)
>
15
)
if
(
strlen
(
relname
)
>
=
NAMEDATALEN
-
1
)
relname
[
15
]
=
'\00
0'
;
relname
[
NAMEDATALEN
-
1
]
=
'\
0'
;
if
(
Typ
==
(
struct
typmap
**
)
NULL
)
if
(
Typ
==
(
struct
typmap
**
)
NULL
)
{
{
...
...
src/backend/commands/view.c
View file @
d0471244
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/view.c,v 1.1
2 1997/09/18 20:20:27
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/commands/view.c,v 1.1
3 1997/11/17 16:58:59
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -117,28 +117,16 @@ DefineVirtualRelation(char *relname, List *tlist)
...
@@ -117,28 +117,16 @@ DefineVirtualRelation(char *relname, List *tlist)
* Given a view name, returns the name for the 'on retrieve to "view"'
* Given a view name, returns the name for the 'on retrieve to "view"'
* rule.
* rule.
* This routine is called when defining/removing a view.
* This routine is called when defining/removing a view.
*
* NOTE: it quarantees that the name is at most 15 chars long
*
* XXX it also means viewName cannot be 16 chars long! - ay 11/94
*------------------------------------------------------------------
*------------------------------------------------------------------
*/
*/
char
*
char
*
MakeRetrieveViewRuleName
(
char
*
viewName
)
MakeRetrieveViewRuleName
(
char
*
viewName
)
{
{
/*
char buf[100];
MemSet(buf, 0, sizeof(buf));
sprintf(buf, "_RET%.*s", NAMEDATALEN, viewName->data);
buf[15] = '\0';
namestrcpy(rule_name, buf);
*/
char
*
buf
;
char
*
buf
;
buf
=
palloc
(
strlen
(
viewName
)
+
5
);
buf
=
palloc
(
strlen
(
viewName
)
+
5
);
sprintf
(
buf
,
"_RET%s"
,
viewName
);
sprintf
(
buf
,
"_RET%s"
,
viewName
);
return
buf
;
return
buf
;
}
}
...
...
src/backend/parser/parser.c
View file @
d0471244
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/parser.c,v 1.2
6 1997/09/12 04:08:01
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/parser/parser.c,v 1.2
7 1997/11/17 16:59:08
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -216,7 +216,7 @@ parser_typecast(Value *expr, TypeName *typename, int typlen)
...
@@ -216,7 +216,7 @@ parser_typecast(Value *expr, TypeName *typename, int typlen)
Const
*
adt
;
Const
*
adt
;
Datum
lcp
;
Datum
lcp
;
Type
tp
;
Type
tp
;
char
type_string
[
16
];
char
type_string
[
NAMEDATALEN
];
int32
len
;
int32
len
;
char
*
cp
=
NULL
;
char
*
cp
=
NULL
;
char
*
const_string
=
NULL
;
char
*
const_string
=
NULL
;
...
...
src/backend/utils/cache/inval.c
View file @
d0471244
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/cache/inval.c,v 1.
8 1997/09/08 21:48:50
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/cache/inval.c,v 1.
9 1997/11/17 16:59:22
momjian Exp $
*
*
* Note - this code is real crufty...
* Note - this code is real crufty...
*
*
...
@@ -591,7 +591,7 @@ SetRefreshWhenInvalidate(bool on)
...
@@ -591,7 +591,7 @@ SetRefreshWhenInvalidate(bool on)
*/
*/
#ifdef INVALIDDEBUG
#ifdef INVALIDDEBUG
#define RelationInvalidateHeapTuple_DEBUG1 \
#define RelationInvalidateHeapTuple_DEBUG1 \
elog(DEBUG, "RelationInvalidateHeapTuple(%
.16
s, [%d,%d])", \
elog(DEBUG, "RelationInvalidateHeapTuple(%s, [%d,%d])", \
RelationGetRelationName(relation), \
RelationGetRelationName(relation), \
ItemPointerGetBlockNumber(&tuple->t_ctid), \
ItemPointerGetBlockNumber(&tuple->t_ctid), \
ItemPointerGetOffsetNumber(&tuple->t_ctid))
ItemPointerGetOffsetNumber(&tuple->t_ctid))
...
...
src/backend/utils/cache/lsyscache.c
View file @
d0471244
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/cache/lsyscache.c,v 1.
6 1997/09/08 21:48:51
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/cache/lsyscache.c,v 1.
7 1997/11/17 16:59:23
momjian Exp $
*
*
* NOTES
* NOTES
* Eventually, the index information should go through here, too.
* Eventually, the index information should go through here, too.
...
@@ -148,7 +148,7 @@ get_attisset(Oid relid, char *attname)
...
@@ -148,7 +148,7 @@ get_attisset(Oid relid, char *attname)
PointerGetDatum
(
attname
),
PointerGetDatum
(
attname
),
0
,
0
);
0
,
0
);
if
(
!
HeapTupleIsValid
(
htup
))
if
(
!
HeapTupleIsValid
(
htup
))
elog
(
WARN
,
"get_attisset: no attribute %
.16
s in relation %d"
,
elog
(
WARN
,
"get_attisset: no attribute %s in relation %d"
,
attname
,
relid
);
attname
,
relid
);
if
(
heap_attisnull
(
htup
,
attno
))
if
(
heap_attisnull
(
htup
,
attno
))
return
(
false
);
return
(
false
);
...
...
src/backend/utils/cache/relcache.c
View file @
d0471244
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/cache/relcache.c,v 1.2
7 1997/11/02 15:26:06 vadim
Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/cache/relcache.c,v 1.2
8 1997/11/17 16:59:25 momjian
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -366,7 +366,7 @@ scan_pg_rel_seq(RelationBuildDescInfo buildinfo)
...
@@ -366,7 +366,7 @@ scan_pg_rel_seq(RelationBuildDescInfo buildinfo)
case
INFO_RELNAME
:
case
INFO_RELNAME
:
ScanKeyEntryInitialize
(
&
key
,
0
,
ScanKeyEntryInitialize
(
&
key
,
0
,
Anum_pg_class_relname
,
Anum_pg_class_relname
,
Character16
EqualRegProcedure
,
Name
EqualRegProcedure
,
NameGetDatum
(
buildinfo
.
i
.
info_name
));
NameGetDatum
(
buildinfo
.
i
.
info_name
));
break
;
break
;
...
...
src/include/catalog/indexing.h
View file @
d0471244
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: indexing.h,v 1.1
1 1997/11/15 20:57:38
momjian Exp $
* $Id: indexing.h,v 1.1
2 1997/11/17 16:59:34
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -27,26 +27,26 @@
...
@@ -27,26 +27,26 @@
#define Num_pg_attrdef_indices 1
#define Num_pg_attrdef_indices 1
#define Num_pg_relcheck_indices 1
#define Num_pg_relcheck_indices 1
#define Num_pg_trigger_indices 1
#define Num_pg_trigger_indices 1
#define Num_pg_
objoid
_indices 1
#define Num_pg_
description
_indices 1
/*
/*
* Names of indices on system catalogs
* Names of indices on system catalogs
*/
*/
#define AttributeNameIndex "pg_att
nameind
"
#define AttributeNameIndex "pg_att
ribute_mkoidname_index
"
#define AttributeNumIndex "pg_att
numind
"
#define AttributeNumIndex "pg_att
ribute_mkoidint2_index
"
#define AttributeRelidIndex "pg_attr
elidind
"
#define AttributeRelidIndex "pg_attr
ibute_attrelid_index
"
#define Procedure
NameIndex "pg_procnameind
"
#define Procedure
OidIndex "pg_proc_oid_index
"
#define Procedure
OidIndex "pg_procidind
"
#define Procedure
NameIndex "pg_proc_proname_index
"
#define ProcedureSrcIndex "pg_proc
srcind
"
#define ProcedureSrcIndex "pg_proc
_prosrc_index
"
#define Type
NameIndex "pg_typenameind
"
#define Type
OidIndex "pg_type_oid_index
"
#define Type
OidIndex "pg_typeidind
"
#define Type
NameIndex "pg_type_typname_index
"
#define Class
NameIndex "pg_classnameind
"
#define Class
OidIndex "pg_class_oid_index
"
#define Class
OidIndex "pg_classoidind
"
#define Class
NameIndex "pg_class_relname_index
"
#define AttrDefaultIndex "pg_attrdef
ind
"
#define AttrDefaultIndex "pg_attrdef
_adrelid_index
"
#define RelCheckIndex "pg_relcheck
ind
"
#define RelCheckIndex "pg_relcheck
_rcrelid_index
"
#define TriggerRelidIndex "pg_trig
relidind
"
#define TriggerRelidIndex "pg_trig
ger_tgrelid_index
"
#define DescriptionObjIndex "pg_descr
objind
"
#define DescriptionObjIndex "pg_descr
iption_objoid_index
"
extern
char
*
Name_pg_attr_indices
[];
extern
char
*
Name_pg_attr_indices
[];
extern
char
*
Name_pg_proc_indices
[];
extern
char
*
Name_pg_proc_indices
[];
...
@@ -55,7 +55,7 @@ extern char *Name_pg_class_indices[];
...
@@ -55,7 +55,7 @@ extern char *Name_pg_class_indices[];
extern
char
*
Name_pg_attrdef_indices
[];
extern
char
*
Name_pg_attrdef_indices
[];
extern
char
*
Name_pg_relcheck_indices
[];
extern
char
*
Name_pg_relcheck_indices
[];
extern
char
*
Name_pg_trigger_indices
[];
extern
char
*
Name_pg_trigger_indices
[];
extern
char
*
Name_pg_
objoid
_indices
[];
extern
char
*
Name_pg_
description
_indices
[];
extern
char
*
IndexedCatalogNames
[];
extern
char
*
IndexedCatalogNames
[];
...
@@ -100,26 +100,27 @@ extern HeapTuple ClassOidIndexScan(Relation heapRelation, Oid relId);
...
@@ -100,26 +100,27 @@ extern HeapTuple ClassOidIndexScan(Relation heapRelation, Oid relId);
* The keyword is DECLARE_INDEX every thing after that is just like in a
* The keyword is DECLARE_INDEX every thing after that is just like in a
* normal specification of the 'define index' POSTQUEL command.
* normal specification of the 'define index' POSTQUEL command.
*/
*/
DECLARE_INDEX
(
pg_att
nameind
on
pg_attribute
using
btree
(
mkoidname
(
attrelid
,
attname
)
oidname_ops
));
DECLARE_INDEX
(
pg_att
ribute_mkoidname_index
on
pg_attribute
using
btree
(
mkoidname
(
attrelid
,
attname
)
oidname_ops
));
DECLARE_INDEX
(
pg_att
numind
on
pg_attribute
using
btree
(
mkoidint2
(
attrelid
,
attnum
)
oidint2_ops
));
DECLARE_INDEX
(
pg_att
ribute_mkoidint2_index
on
pg_attribute
using
btree
(
mkoidint2
(
attrelid
,
attnum
)
oidint2_ops
));
DECLARE_INDEX
(
pg_attr
elidind
on
pg_attribute
using
btree
(
attrelid
oid_ops
));
DECLARE_INDEX
(
pg_attr
ibute_attrelid_index
on
pg_attribute
using
btree
(
attrelid
oid_ops
));
DECLARE_INDEX
(
pg_proc
idind
on
pg_proc
using
btree
(
O
id
oid_ops
));
DECLARE_INDEX
(
pg_proc
_oid_index
on
pg_proc
using
btree
(
o
id
oid_ops
));
DECLARE_INDEX
(
pg_proc
nameind
on
pg_proc
using
btree
(
proname
name_ops
));
DECLARE_INDEX
(
pg_proc
_proname_index
on
pg_proc
using
btree
(
proname
name_ops
));
DECLARE_INDEX
(
pg_proc
srcind
on
pg_proc
using
btree
(
prosrc
text_ops
));
DECLARE_INDEX
(
pg_proc
_prosrc_index
on
pg_proc
using
btree
(
prosrc
text_ops
));
DECLARE_INDEX
(
pg_type
idind
on
pg_type
using
btree
(
O
id
oid_ops
));
DECLARE_INDEX
(
pg_type
_oid_index
on
pg_type
using
btree
(
o
id
oid_ops
));
DECLARE_INDEX
(
pg_type
nameind
on
pg_type
using
btree
(
typname
name_ops
));
DECLARE_INDEX
(
pg_type
_typname_index
on
pg_type
using
btree
(
typname
name_ops
));
DECLARE_INDEX
(
pg_class
nameind
on
pg_class
using
btree
(
relname
name
_ops
));
DECLARE_INDEX
(
pg_class
_oid_index
on
pg_class
using
btree
(
oid
oid
_ops
));
DECLARE_INDEX
(
pg_class
oidind
on
pg_class
using
btree
(
Oid
oid
_ops
));
DECLARE_INDEX
(
pg_class
_relname_index
on
pg_class
using
btree
(
relname
name
_ops
));
DECLARE_INDEX
(
pg_attrdefind
on
pg_attrdef
using
btree
(
adrelid
oid_ops
));
DECLARE_INDEX
(
pg_attrdef_adrelid_index
on
pg_attrdef
using
btree
(
adrelid
oid_ops
));
DECLARE_INDEX
(
pg_relcheckind
on
pg_relcheck
using
btree
(
rcrelid
oid_ops
));
DECLARE_INDEX
(
pg_
trigrelidind
on
pg_trigger
using
btree
(
tg
relid
oid_ops
));
DECLARE_INDEX
(
pg_
relcheck_rcrelid_index
on
pg_relcheck
using
btree
(
rc
relid
oid_ops
));
DECLARE_INDEX
(
pg_descrobjind
on
pg_description
using
btree
(
objoid
oid_ops
));
DECLARE_INDEX
(
pg_trigger_tgrelid_index
on
pg_trigger
using
btree
(
tgrelid
oid_ops
));
DECLARE_INDEX
(
pg_description_objoid_index
on
pg_description
using
btree
(
objoid
oid_ops
));
/* now build indices in the initialization scripts */
/* now build indices in the initialization scripts */
BUILD_INDICES
BUILD_INDICES
...
...
src/include/catalog/pg_proc.h
View file @
d0471244
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: pg_proc.h,v 1.3
6 1997/11/15 16:32:09
momjian Exp $
* $Id: pg_proc.h,v 1.3
7 1997/11/17 16:59:36
momjian Exp $
*
*
* NOTES
* NOTES
* The script catalog/genbki.sh reads this file and generates .bki
* The script catalog/genbki.sh reads this file and generates .bki
...
@@ -878,7 +878,6 @@ DATA(insert OID = 484 ( char2ge PGUID 11 f t f 2 f 16 "409 409" 100 0 0 100
...
@@ -878,7 +878,6 @@ DATA(insert OID = 484 ( char2ge PGUID 11 f t f 2 f 16 "409 409" 100 0 0 100
DESCR
(
""
);
DESCR
(
""
);
DATA
(
insert
OID
=
1275
(
char16eq
PGUID
11
f
t
f
2
f
16
"19 19"
100
0
0
100
foo
bar
));
DATA
(
insert
OID
=
1275
(
char16eq
PGUID
11
f
t
f
2
f
16
"19 19"
100
0
0
100
foo
bar
));
DESCR
(
""
);
DESCR
(
""
);
#define Character16EqualRegProcedure 1275
DATA
(
insert
OID
=
1276
(
char16lt
PGUID
11
f
t
f
2
f
16
"19 19"
100
0
0
100
foo
bar
));
DATA
(
insert
OID
=
1276
(
char16lt
PGUID
11
f
t
f
2
f
16
"19 19"
100
0
0
100
foo
bar
));
DESCR
(
""
);
DESCR
(
""
);
DATA
(
insert
OID
=
1277
(
char16le
PGUID
11
f
t
f
2
f
16
"19 19"
100
0
0
100
foo
bar
));
DATA
(
insert
OID
=
1277
(
char16le
PGUID
11
f
t
f
2
f
16
"19 19"
100
0
0
100
foo
bar
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment