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
27af6616
Commit
27af6616
authored
Jul 05, 2011
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Message style tweaks
parent
d479a0f9
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
18 additions
and
17 deletions
+18
-17
src/backend/commands/tablecmds.c
src/backend/commands/tablecmds.c
+2
-1
src/backend/parser/parse_utilcmd.c
src/backend/parser/parse_utilcmd.c
+1
-1
src/backend/port/win32/crashdump.c
src/backend/port/win32/crashdump.c
+5
-5
src/backend/storage/lmgr/predicate.c
src/backend/storage/lmgr/predicate.c
+1
-1
src/backend/utils/adt/varlena.c
src/backend/utils/adt/varlena.c
+1
-1
src/backend/utils/misc/guc.c
src/backend/utils/misc/guc.c
+4
-4
src/test/regress/expected/foreign_data.out
src/test/regress/expected/foreign_data.out
+2
-2
src/test/regress/expected/text.out
src/test/regress/expected/text.out
+1
-1
src/test/regress/sql/foreign_data.sql
src/test/regress/sql/foreign_data.sql
+1
-1
No files found.
src/backend/commands/tablecmds.c
View file @
27af6616
...
...
@@ -6924,7 +6924,8 @@ ATPrepAlterColumnType(List **wqueue,
else
if
(
transform
)
ereport
(
ERROR
,
(
errcode
(
ERRCODE_WRONG_OBJECT_TYPE
),
errmsg
(
"ALTER TYPE USING is only supported on plain tables"
)));
errmsg
(
"
\"
%s
\"
is not a table"
,
RelationGetRelationName
(
rel
))));
if
(
tab
->
relkind
==
RELKIND_COMPOSITE_TYPE
||
tab
->
relkind
==
RELKIND_FOREIGN_TABLE
)
...
...
src/backend/parser/parse_utilcmd.c
View file @
27af6616
...
...
@@ -1531,7 +1531,7 @@ transformIndexConstraint(Constraint *constraint, CreateStmtContext *cxt)
if
(
index_rel
->
rd_rel
->
relam
!=
get_am_oid
(
DEFAULT_INDEX_TYPE
,
false
))
ereport
(
ERROR
,
(
errcode
(
ERRCODE_WRONG_OBJECT_TYPE
),
errmsg
(
"index
\"
%s
\"
is not a b
-
tree"
,
index_name
),
errmsg
(
"index
\"
%s
\"
is not a btree"
,
index_name
),
parser_errposition
(
cxt
->
pstate
,
constraint
->
location
)));
/* Must get indclass the hard way */
...
...
src/backend/port/win32/crashdump.c
View file @
27af6616
...
...
@@ -105,7 +105,7 @@ crashDumpHandler(struct _EXCEPTION_POINTERS * pExceptionInfo)
hDll
=
LoadLibrary
(
"dbghelp.dll"
);
if
(
hDll
==
NULL
)
{
write_stderr
(
"could not load dbghelp.dll, cannot write crashdump
\n
"
);
write_stderr
(
"could not load dbghelp.dll, cannot write crash
dump
\n
"
);
return
EXCEPTION_CONTINUE_SEARCH
;
}
...
...
@@ -113,7 +113,7 @@ crashDumpHandler(struct _EXCEPTION_POINTERS * pExceptionInfo)
if
(
pDump
==
NULL
)
{
write_stderr
(
"could not load required functions in dbghelp.dll, cannot write crashdump
\n
"
);
write_stderr
(
"could not load required functions in dbghelp.dll, cannot write crash
dump
\n
"
);
return
EXCEPTION_CONTINUE_SEARCH
;
}
...
...
@@ -144,16 +144,16 @@ crashDumpHandler(struct _EXCEPTION_POINTERS * pExceptionInfo)
NULL
);
if
(
dumpFile
==
INVALID_HANDLE_VALUE
)
{
write_stderr
(
"could not open crash dump file
%s
for writing: error code %u
\n
"
,
write_stderr
(
"could not open crash dump file
\"
%s
\"
for writing: error code %u
\n
"
,
dumpPath
,
(
unsigned
int
)
GetLastError
());
return
EXCEPTION_CONTINUE_SEARCH
;
}
if
((
*
pDump
)
(
selfProcHandle
,
selfPid
,
dumpFile
,
dumpType
,
&
ExInfo
,
NULL
,
NULL
))
write_stderr
(
"wrote crash dump to
%s
\n
"
,
dumpPath
);
write_stderr
(
"wrote crash dump to
file
\"
%s
\"
\n
"
,
dumpPath
);
else
write_stderr
(
"could not write crash dump to
%s
: error code %08x
\n
"
,
write_stderr
(
"could not write crash dump to
file
\"
%s
\"
: error code %08x
\n
"
,
dumpPath
,
(
unsigned
int
)
GetLastError
());
CloseHandle
(
dumpFile
);
...
...
src/backend/storage/lmgr/predicate.c
View file @
27af6616
...
...
@@ -882,7 +882,7 @@ OldSerXidAdd(TransactionId xid, SerCommitSeqNo minConflictCommitSeqNo)
oldSerXidControl
->
warningIssued
=
true
;
ereport
(
WARNING
,
(
errmsg
(
"memory for serializable conflict tracking is nearly exhausted"
),
errhint
(
"There m
ay
be an idle transaction or a forgotten prepared transaction causing this."
)));
errhint
(
"There m
ight
be an idle transaction or a forgotten prepared transaction causing this."
)));
}
}
...
...
src/backend/utils/adt/varlena.c
View file @
27af6616
...
...
@@ -3937,7 +3937,7 @@ text_format_string_conversion(StringInfo buf, char conversion,
else
if
(
conversion
==
'I'
)
ereport
(
ERROR
,
(
errcode
(
ERRCODE_NULL_VALUE_NOT_ALLOWED
),
errmsg
(
"
NULL cannot be escap
ed as an SQL identifier"
)));
errmsg
(
"
null values cannot be formatt
ed as an SQL identifier"
)));
return
;
}
...
...
src/backend/utils/misc/guc.c
View file @
27af6616
...
...
@@ -877,7 +877,7 @@ static struct config_bool ConfigureNamesBool[] =
},
{
{
"restart_after_crash"
,
PGC_SIGHUP
,
ERROR_HANDLING_OPTIONS
,
gettext_noop
(
"Reinitialize after backend crash."
),
gettext_noop
(
"Reinitialize
server
after backend crash."
),
NULL
},
&
restart_after_crash
,
...
...
@@ -1368,7 +1368,7 @@ static struct config_bool ConfigureNamesBool[] =
{
{
"hot_standby_feedback"
,
PGC_SIGHUP
,
WAL_STANDBY_SERVERS
,
gettext_noop
(
"Allows feedback from a hot standby primary that will avoid query conflicts."
),
gettext_noop
(
"Allows feedback from a hot standby
to the
primary that will avoid query conflicts."
),
NULL
},
&
hot_standby_feedback
,
...
...
@@ -1557,7 +1557,7 @@ static struct config_int ConfigureNamesInt[] =
{
{
"wal_receiver_status_interval"
,
PGC_SIGHUP
,
WAL_STANDBY_SERVERS
,
gettext_noop
(
"Sets the maximum interval between WAL receiver status reports to the
master
."
),
gettext_noop
(
"Sets the maximum interval between WAL receiver status reports to the
primary
."
),
NULL
,
GUC_UNIT_S
},
...
...
@@ -2955,7 +2955,7 @@ static struct config_string ConfigureNamesString[] =
{
{
"synchronous_standby_names"
,
PGC_SIGHUP
,
WAL_REPLICATION
,
gettext_noop
(
"List of
potential standby names to synchronize with
."
),
gettext_noop
(
"List of
names of potential synchronous standbys
."
),
NULL
,
GUC_LIST_INPUT
},
...
...
src/test/regress/expected/foreign_data.out
View file @
27af6616
...
...
@@ -694,8 +694,8 @@ ALTER FOREIGN TABLE ft1 ALTER COLUMN c5 DROP DEFAULT; -- ERROR
ERROR: "ft1" is not a table or view
ALTER FOREIGN TABLE ft1 ALTER COLUMN c6 SET NOT NULL;
ALTER FOREIGN TABLE ft1 ALTER COLUMN c7 DROP NOT NULL;
ALTER FOREIGN TABLE ft1 ALTER COLUMN c8 TYPE char(10)
using
'0'; -- ERROR
ERROR:
ALTER TYPE USING is only supported on plain tables
ALTER FOREIGN TABLE ft1 ALTER COLUMN c8 TYPE char(10)
USING
'0'; -- ERROR
ERROR:
"ft1" is not a table
ALTER FOREIGN TABLE ft1 ALTER COLUMN c8 TYPE char(10);
ALTER FOREIGN TABLE ft1 ALTER COLUMN c8 SET DATA TYPE text;
-- can't change the column type if it's used elsewhere
...
...
src/test/regress/expected/text.out
View file @
27af6616
...
...
@@ -203,7 +203,7 @@ select format('INSERT INTO %I VALUES(%L,%L)', 'mytab', NULL, 'Hello');
-- should fail, sql identifier cannot be NULL
select format('INSERT INTO %I VALUES(%L,%L)', NULL, 10, 'Hello');
ERROR:
NULL cannot be escap
ed as an SQL identifier
ERROR:
null values cannot be formatt
ed as an SQL identifier
-- check positional placeholders
select format('%1$s %3$s', 1, 2, 3);
format
...
...
src/test/regress/sql/foreign_data.sql
View file @
27af6616
...
...
@@ -294,7 +294,7 @@ ALTER FOREIGN TABLE ft1 ALTER COLUMN c4 SET DEFAULT 0; -- ERROR
ALTER
FOREIGN
TABLE
ft1
ALTER
COLUMN
c5
DROP
DEFAULT
;
-- ERROR
ALTER
FOREIGN
TABLE
ft1
ALTER
COLUMN
c6
SET
NOT
NULL
;
ALTER
FOREIGN
TABLE
ft1
ALTER
COLUMN
c7
DROP
NOT
NULL
;
ALTER
FOREIGN
TABLE
ft1
ALTER
COLUMN
c8
TYPE
char
(
10
)
using
'0'
;
-- ERROR
ALTER
FOREIGN
TABLE
ft1
ALTER
COLUMN
c8
TYPE
char
(
10
)
USING
'0'
;
-- ERROR
ALTER
FOREIGN
TABLE
ft1
ALTER
COLUMN
c8
TYPE
char
(
10
);
ALTER
FOREIGN
TABLE
ft1
ALTER
COLUMN
c8
SET
DATA
TYPE
text
;
-- can't change the column type if it's used elsewhere
...
...
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