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
8e599897
Commit
8e599897
authored
May 18, 2018
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve two error messages
parent
ecd6b434
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
src/backend/parser/parse_utilcmd.c
src/backend/parser/parse_utilcmd.c
+1
-1
src/bin/pg_upgrade/check.c
src/bin/pg_upgrade/check.c
+4
-2
No files found.
src/backend/parser/parse_utilcmd.c
View file @
8e599897
...
@@ -2098,7 +2098,7 @@ transformIndexConstraint(Constraint *constraint, CreateStmtContext *cxt)
...
@@ -2098,7 +2098,7 @@ transformIndexConstraint(Constraint *constraint, CreateStmtContext *cxt)
index_rel
->
rd_indoption
[
i
]
!=
0
)
index_rel
->
rd_indoption
[
i
]
!=
0
)
ereport
(
ERROR
,
ereport
(
ERROR
,
(
errcode
(
ERRCODE_WRONG_OBJECT_TYPE
),
(
errcode
(
ERRCODE_WRONG_OBJECT_TYPE
),
errmsg
(
"index
\"
%s
\"
does not have default sorting behavior"
,
index_name
),
errmsg
(
"index
\"
%s
\"
column number %d does not have default sorting behavior"
,
index_name
,
i
+
1
),
errdetail
(
"Cannot create a primary key or unique constraint using such an index."
),
errdetail
(
"Cannot create a primary key or unique constraint using such an index."
),
parser_errposition
(
cxt
->
pstate
,
constraint
->
location
)));
parser_errposition
(
cxt
->
pstate
,
constraint
->
location
)));
...
...
src/bin/pg_upgrade/check.c
View file @
8e599897
...
@@ -382,8 +382,10 @@ check_new_cluster_is_empty(void)
...
@@ -382,8 +382,10 @@ check_new_cluster_is_empty(void)
{
{
/* pg_largeobject and its index should be skipped */
/* pg_largeobject and its index should be skipped */
if
(
strcmp
(
rel_arr
->
rels
[
relnum
].
nspname
,
"pg_catalog"
)
!=
0
)
if
(
strcmp
(
rel_arr
->
rels
[
relnum
].
nspname
,
"pg_catalog"
)
!=
0
)
pg_fatal
(
"New cluster database
\"
%s
\"
is not empty
\n
"
,
pg_fatal
(
"New cluster database
\"
%s
\"
is not empty: found relation
\"
%s.%s
\"\n
"
,
new_cluster
.
dbarr
.
dbs
[
dbnum
].
db_name
);
new_cluster
.
dbarr
.
dbs
[
dbnum
].
db_name
,
rel_arr
->
rels
[
relnum
].
nspname
,
rel_arr
->
rels
[
relnum
].
relname
);
}
}
}
}
}
}
...
...
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