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
046848c2
Commit
046848c2
authored
Dec 22, 2000
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve error message for case where DROP TABLE is rejected because
table has a child table.
parent
1b555ce7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
src/backend/catalog/heap.c
src/backend/catalog/heap.c
+11
-6
No files found.
src/backend/catalog/heap.c
View file @
046848c2
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/catalog/heap.c,v 1.15
2 2000/11/16 22:30:1
7 tgl Exp $
* $Header: /cvsroot/pgsql/src/backend/catalog/heap.c,v 1.15
3 2000/12/22 19:21:3
7 tgl Exp $
*
*
* INTERFACE ROUTINES
...
...
@@ -61,6 +61,7 @@
#include "utils/builtins.h"
#include "utils/catcache.h"
#include "utils/fmgroids.h"
#include "utils/lsyscache.h"
#include "utils/relcache.h"
#include "utils/syscache.h"
#include "utils/temprel.h"
...
...
@@ -970,12 +971,16 @@ RelationRemoveInheritance(Relation relation)
if
(
HeapTupleIsValid
(
tuple
))
{
Oid
subclass
=
((
Form_pg_inherits
)
GETSTRUCT
(
tuple
))
->
inhrelid
;
char
*
subclassname
;
heap_endscan
(
scan
);
heap_close
(
catalogRelation
,
RowExclusiveLock
);
elog
(
ERROR
,
"Relation '%u' inherits '%s'"
,
subclass
,
RelationGetRelationName
(
relation
));
subclassname
=
get_rel_name
(
subclass
);
/* Just in case get_rel_name fails... */
if
(
subclassname
)
elog
(
ERROR
,
"Relation
\"
%s
\"
inherits from
\"
%s
\"
"
,
subclassname
,
RelationGetRelationName
(
relation
));
else
elog
(
ERROR
,
"Relation %u inherits from
\"
%s
\"
"
,
subclass
,
RelationGetRelationName
(
relation
));
}
heap_endscan
(
scan
);
...
...
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