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
e1ae40f3
Commit
e1ae40f3
authored
Mar 17, 2021
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small error message improvement
parent
378802e3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
src/backend/commands/tablecmds.c
src/backend/commands/tablecmds.c
+1
-1
src/test/regress/expected/foreign_data.out
src/test/regress/expected/foreign_data.out
+2
-2
No files found.
src/backend/commands/tablecmds.c
View file @
e1ae40f3
...
@@ -16673,7 +16673,7 @@ AttachPartitionEnsureIndexes(Relation rel, Relation attachrel)
...
@@ -16673,7 +16673,7 @@ AttachPartitionEnsureIndexes(Relation rel, Relation attachrel)
errmsg
(
"cannot attach foreign table
\"
%s
\"
as partition of partitioned table
\"
%s
\"
"
,
errmsg
(
"cannot attach foreign table
\"
%s
\"
as partition of partitioned table
\"
%s
\"
"
,
RelationGetRelationName
(
attachrel
),
RelationGetRelationName
(
attachrel
),
RelationGetRelationName
(
rel
)),
RelationGetRelationName
(
rel
)),
errdetail
(
"
T
able
\"
%s
\"
contains unique indexes."
,
errdetail
(
"
Partitioned t
able
\"
%s
\"
contains unique indexes."
,
RelationGetRelationName
(
rel
))));
RelationGetRelationName
(
rel
))));
index_close
(
idxRel
,
AccessShareLock
);
index_close
(
idxRel
,
AccessShareLock
);
}
}
...
...
src/test/regress/expected/foreign_data.out
View file @
e1ae40f3
...
@@ -773,7 +773,7 @@ CREATE FOREIGN TABLE ft_part2 (a INT NOT NULL) SERVER s0;
...
@@ -773,7 +773,7 @@ CREATE FOREIGN TABLE ft_part2 (a INT NOT NULL) SERVER s0;
ALTER TABLE lt1 ATTACH PARTITION ft_part2
ALTER TABLE lt1 ATTACH PARTITION ft_part2
FOR VALUES FROM (1000) TO (2000); -- ERROR
FOR VALUES FROM (1000) TO (2000); -- ERROR
ERROR: cannot attach foreign table "ft_part2" as partition of partitioned table "lt1"
ERROR: cannot attach foreign table "ft_part2" as partition of partitioned table "lt1"
DETAIL:
T
able "lt1" contains unique indexes.
DETAIL:
Partitioned t
able "lt1" contains unique indexes.
DROP TABLE lt1;
DROP TABLE lt1;
DROP FOREIGN TABLE ft_part2;
DROP FOREIGN TABLE ft_part2;
CREATE TABLE lt1 (a INT) PARTITION BY RANGE (a);
CREATE TABLE lt1 (a INT) PARTITION BY RANGE (a);
...
@@ -801,7 +801,7 @@ DETAIL: Table "lt1_part1" contains indexes that are unique.
...
@@ -801,7 +801,7 @@ DETAIL: Table "lt1_part1" contains indexes that are unique.
CREATE FOREIGN TABLE ft_part_1_2 (a INT NOT NULL) SERVER s0;
CREATE FOREIGN TABLE ft_part_1_2 (a INT NOT NULL) SERVER s0;
ALTER TABLE lt1_part1 ATTACH PARTITION ft_part_1_2 FOR VALUES FROM (100) TO (200);
ALTER TABLE lt1_part1 ATTACH PARTITION ft_part_1_2 FOR VALUES FROM (100) TO (200);
ERROR: cannot attach foreign table "ft_part_1_2" as partition of partitioned table "lt1_part1"
ERROR: cannot attach foreign table "ft_part_1_2" as partition of partitioned table "lt1_part1"
DETAIL:
T
able "lt1_part1" contains unique indexes.
DETAIL:
Partitioned t
able "lt1_part1" contains unique indexes.
DROP TABLE lt1;
DROP TABLE lt1;
DROP FOREIGN TABLE ft_part_1_2;
DROP FOREIGN TABLE ft_part_1_2;
-- ALTER FOREIGN TABLE
-- ALTER FOREIGN TABLE
...
...
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