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
70df6484
Commit
70df6484
authored
Oct 20, 2000
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up gcc warnings.
parent
8b53eaf9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
src/backend/commands/rename.c
src/backend/commands/rename.c
+5
-3
No files found.
src/backend/commands/rename.c
View file @
70df6484
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/Attic/rename.c,v 1.
49 2000/10/16 17:08:05 momjian
Exp $
* $Header: /cvsroot/pgsql/src/backend/commands/Attic/rename.c,v 1.
50 2000/10/20 02:53:10 tgl
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -177,17 +177,19 @@ renameatt(char *relname,
...
@@ -177,17 +177,19 @@ renameatt(char *relname,
void
void
renamerel
(
const
char
*
oldrelname
,
const
char
*
newrelname
)
renamerel
(
const
char
*
oldrelname
,
const
char
*
newrelname
)
{
{
int
i
;
Relation
targetrelation
;
Relation
targetrelation
;
Relation
relrelation
;
/* for RELATION relation */
Relation
relrelation
;
/* for RELATION relation */
HeapTuple
oldreltup
;
HeapTuple
oldreltup
;
Oid
reloid
;
Oid
reloid
;
char
relkind
;
char
relkind
;
Relation
irelations
[
Num_pg_class_indices
];
#ifdef OLD_FILE_NAMING
int
i
;
char
oldpath
[
MAXPGPATH
],
char
oldpath
[
MAXPGPATH
],
newpath
[
MAXPGPATH
],
newpath
[
MAXPGPATH
],
toldpath
[
MAXPGPATH
+
10
],
toldpath
[
MAXPGPATH
+
10
],
tnewpath
[
MAXPGPATH
+
10
];
tnewpath
[
MAXPGPATH
+
10
];
Relation
irelations
[
Num_pg_class_indices
];
#endif
if
(
!
allowSystemTableMods
&&
IsSystemRelationName
(
oldrelname
))
if
(
!
allowSystemTableMods
&&
IsSystemRelationName
(
oldrelname
))
elog
(
ERROR
,
"renamerel: system relation
\"
%s
\"
not renamed"
,
elog
(
ERROR
,
"renamerel: system relation
\"
%s
\"
not renamed"
,
...
...
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