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
9f8b717a
Commit
9f8b717a
authored
Apr 30, 2019
by
Alvaro Herrera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Message style fixes
parent
9a83afec
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
13 additions
and
11 deletions
+13
-11
src/backend/access/table/tableamapi.c
src/backend/access/table/tableamapi.c
+3
-3
src/backend/access/transam/twophase.c
src/backend/access/transam/twophase.c
+2
-2
src/backend/commands/indexcmds.c
src/backend/commands/indexcmds.c
+1
-1
src/backend/commands/tablecmds.c
src/backend/commands/tablecmds.c
+4
-2
src/backend/utils/misc/guc.c
src/backend/utils/misc/guc.c
+2
-2
src/test/regress/output/tablespace.source
src/test/regress/output/tablespace.source
+1
-1
No files found.
src/backend/access/table/tableamapi.c
View file @
9f8b717a
...
...
@@ -109,8 +109,8 @@ check_default_table_access_method(char **newval, void **extra, GucSource source)
if
(
strlen
(
*
newval
)
>=
NAMEDATALEN
)
{
GUC_check_errdetail
(
"
default_table_access_method
is too long (maximum %d characters)."
,
NAMEDATALEN
-
1
);
GUC_check_errdetail
(
"
%s
is too long (maximum %d characters)."
,
"default_table_access_method"
,
NAMEDATALEN
-
1
);
return
false
;
}
...
...
@@ -131,7 +131,7 @@ check_default_table_access_method(char **newval, void **extra, GucSource source)
{
ereport
(
NOTICE
,
(
errcode
(
ERRCODE_UNDEFINED_OBJECT
),
errmsg
(
"
T
able access method
\"
%s
\"
does not exist"
,
errmsg
(
"
t
able access method
\"
%s
\"
does not exist"
,
*
newval
)));
}
else
...
...
src/backend/access/transam/twophase.c
View file @
9f8b717a
...
...
@@ -2190,12 +2190,12 @@ ProcessTwoPhaseBuffer(TransactionId xid,
if
(
fromdisk
)
ereport
(
ERROR
,
(
errcode
(
ERRCODE_DATA_CORRUPTED
),
errmsg
(
"corrupted two-phase state file for transaction
\"
%u
\"
"
,
errmsg
(
"corrupted two-phase state file for transaction
%u
"
,
xid
)));
else
ereport
(
ERROR
,
(
errcode
(
ERRCODE_DATA_CORRUPTED
),
errmsg
(
"corrupted two-phase state in memory for transaction
\"
%u
\"
"
,
errmsg
(
"corrupted two-phase state in memory for transaction
%u
"
,
xid
)));
}
...
...
src/backend/commands/indexcmds.c
View file @
9f8b717a
...
...
@@ -639,7 +639,7 @@ DefineIndex(Oid relationId,
if
(
partitioned
&&
tablespaceId
==
MyDatabaseTableSpace
)
ereport
(
ERROR
,
(
errcode
(
ERRCODE_FEATURE_NOT_SUPPORTED
),
errmsg
(
"cannot specify default tablespace for partitioned relation"
)));
errmsg
(
"cannot specify default tablespace for partitioned relation
s
"
)));
}
else
{
...
...
src/backend/commands/tablecmds.c
View file @
9f8b717a
...
...
@@ -7689,12 +7689,14 @@ ATAddForeignKeyConstraint(List **wqueue, AlteredTableInfo *tab, Relation rel,
fkconstraint
->
fk_upd_action
==
FKCONSTR_ACTION_CASCADE
)
ereport
(
ERROR
,
(
errcode
(
ERRCODE_SYNTAX_ERROR
),
errmsg
(
"invalid ON UPDATE action for foreign key constraint containing generated column"
)));
errmsg
(
"invalid %s action for foreign key constraint containing generated column"
,
"ON UPDATE"
)));
if
(
fkconstraint
->
fk_del_action
==
FKCONSTR_ACTION_SETNULL
||
fkconstraint
->
fk_del_action
==
FKCONSTR_ACTION_SETDEFAULT
)
ereport
(
ERROR
,
(
errcode
(
ERRCODE_SYNTAX_ERROR
),
errmsg
(
"invalid ON DELETE action for foreign key constraint containing generated column"
)));
errmsg
(
"invalid %s action for foreign key constraint containing generated column"
,
"ON DELETE"
)));
}
}
...
...
src/backend/utils/misc/guc.c
View file @
9f8b717a
...
...
@@ -11639,8 +11639,8 @@ check_recovery_target_name(char **newval, void **extra, GucSource source)
/* Use the value of newval directly */
if
(
strlen
(
*
newval
)
>=
MAXFNAMELEN
)
{
GUC_check_errdetail
(
"
recovery_target_name
is too long (maximum %d characters)."
,
MAXFNAMELEN
-
1
);
GUC_check_errdetail
(
"
%s
is too long (maximum %d characters)."
,
"recovery_target_name"
,
MAXFNAMELEN
-
1
);
return
false
;
}
return
true
;
...
...
src/test/regress/output/tablespace.source
View file @
9f8b717a
...
...
@@ -106,7 +106,7 @@ Tablespace: "regress_tblspace"
CREATE TABLE testschema.dflt (a int PRIMARY KEY) PARTITION BY LIST (a) TABLESPACE pg_default;
ERROR: cannot specify default tablespace for partitioned relations
CREATE TABLE testschema.dflt (a int PRIMARY KEY USING INDEX TABLESPACE pg_default) PARTITION BY LIST (a);
ERROR: cannot specify default tablespace for partitioned relation
ERROR: cannot specify default tablespace for partitioned relation
s
SET default_tablespace TO 'pg_default';
CREATE TABLE testschema.dflt (a int PRIMARY KEY) PARTITION BY LIST (a) TABLESPACE regress_tblspace;
ERROR: cannot specify default tablespace for partitioned relations
...
...
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