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
65c9dc23
Commit
65c9dc23
authored
Aug 29, 2014
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Assorted message improvements
parent
14b7c8f2
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
12 additions
and
12 deletions
+12
-12
src/backend/commands/view.c
src/backend/commands/view.c
+1
-1
src/backend/port/sysv_shmem.c
src/backend/port/sysv_shmem.c
+1
-1
src/backend/rewrite/rewriteHandler.c
src/backend/rewrite/rewriteHandler.c
+2
-2
src/backend/utils/misc/guc.c
src/backend/utils/misc/guc.c
+1
-1
src/bin/pg_ctl/nls.mk
src/bin/pg_ctl/nls.mk
+1
-1
src/bin/psql/command.c
src/bin/psql/command.c
+1
-1
src/bin/psql/copy.c
src/bin/psql/copy.c
+2
-2
src/test/regress/expected/updatable_views.out
src/test/regress/expected/updatable_views.out
+3
-3
No files found.
src/backend/commands/view.c
View file @
65c9dc23
...
...
@@ -52,7 +52,7 @@ validateWithCheckOption(char *value)
ereport
(
ERROR
,
(
errcode
(
ERRCODE_INVALID_PARAMETER_VALUE
),
errmsg
(
"invalid value for
\"
check_option
\"
option"
),
errdetail
(
"Valid values are
\"
local
\"
,
and
\"
cascaded
\"
."
)));
errdetail
(
"Valid values are
\"
local
\"
and
\"
cascaded
\"
."
)));
}
}
...
...
src/backend/port/sysv_shmem.c
View file @
65c9dc23
...
...
@@ -391,7 +391,7 @@ CreateAnonymousSegment(Size *size)
(
mmap_errno
==
ENOMEM
)
?
errhint
(
"This error usually means that PostgreSQL's request "
"for a shared memory segment exceeded available memory, "
"swap space or huge pages. To reduce the request size "
"swap space
,
or huge pages. To reduce the request size "
"(currently %zu bytes), reduce PostgreSQL's shared "
"memory usage, perhaps by reducing shared_buffers or "
"max_connections."
,
...
...
src/backend/rewrite/rewriteHandler.c
View file @
65c9dc23
...
...
@@ -2088,10 +2088,10 @@ view_query_is_auto_updatable(Query *viewquery, bool check_cols)
* unique row in the underlying base relation.
*/
if
(
viewquery
->
hasAggs
)
return
gettext_noop
(
"Views that return aggregate functions are not automatically updatable"
);
return
gettext_noop
(
"Views that return aggregate functions are not automatically updatable
.
"
);
if
(
viewquery
->
hasWindowFuncs
)
return
gettext_noop
(
"Views that return window functions are not automatically updatable"
);
return
gettext_noop
(
"Views that return window functions are not automatically updatable
.
"
);
if
(
expression_returns_set
((
Node
*
)
viewquery
->
targetList
))
return
gettext_noop
(
"Views that return set-returning functions are not automatically updatable."
);
...
...
src/backend/utils/misc/guc.c
View file @
65c9dc23
...
...
@@ -6834,7 +6834,7 @@ AlterSystemSetConfigFile(AlterSystemStmt *altersysstmt)
if
(
rename
(
AutoConfTmpFileName
,
AutoConfFileName
)
<
0
)
ereport
(
ERROR
,
(
errcode_for_file_access
(),
errmsg
(
"could not rename file
\"
%s
\"
to
\"
%s
\"
: %m"
,
errmsg
(
"could not rename file
\"
%s
\"
to
\"
%s
\"
: %m"
,
AutoConfTmpFileName
,
AutoConfFileName
)));
}
PG_CATCH
();
...
...
src/bin/pg_ctl/nls.mk
View file @
65c9dc23
# src/bin/pg_ctl/nls.mk
CATALOG_NAME
=
pg_ctl
AVAIL_LANGUAGES
=
cs de es fr it ja pl pt_BR ru sv zh_CN zh_TW
GETTEXT_FILES
=
pg_ctl.c ../../common/exec.c ../../common/fe_memutils.c ../../common/wait_error.c
GETTEXT_FILES
=
pg_ctl.c ../../common/exec.c ../../common/fe_memutils.c ../../common/wait_error.c
../../port/path.c
src/bin/psql/command.c
View file @
65c9dc23
...
...
@@ -270,7 +270,7 @@ exec_command(const char *cmd,
pw
=
getpwuid
(
user_id
);
if
(
!
pw
)
{
psql_error
(
"could not get home directory for user
id
%ld: %s
\n
"
,
psql_error
(
"could not get home directory for user
ID
%ld: %s
\n
"
,
(
long
)
user_id
,
errno
?
strerror
(
errno
)
:
_
(
"user does not exist"
));
exit
(
EXIT_FAILURE
);
...
...
src/bin/psql/copy.c
View file @
65c9dc23
...
...
@@ -343,8 +343,8 @@ do_copy(const char *args)
/* make sure the specified file is not a directory */
if
((
result
=
fstat
(
fileno
(
copystream
),
&
st
))
<
0
)
psql_error
(
"could not stat file: %s
\n
"
,
strerror
(
errno
));
psql_error
(
"could not stat file
\"
%s
\"
: %s
\n
"
,
options
->
file
,
strerror
(
errno
));
if
(
result
==
0
&&
S_ISDIR
(
st
.
st_mode
))
psql_error
(
"%s: cannot copy from/to a directory
\n
"
,
...
...
src/test/regress/expected/updatable_views.out
View file @
65c9dc23
...
...
@@ -151,11 +151,11 @@ DETAIL: Views containing HAVING are not automatically updatable.
HINT: To enable deleting from the view, provide an INSTEAD OF DELETE trigger or an unconditional ON DELETE DO INSTEAD rule.
DELETE FROM ro_view4;
ERROR: cannot delete from view "ro_view4"
DETAIL: Views that return aggregate functions are not automatically updatable
DETAIL: Views that return aggregate functions are not automatically updatable
.
HINT: To enable deleting from the view, provide an INSTEAD OF DELETE trigger or an unconditional ON DELETE DO INSTEAD rule.
DELETE FROM ro_view5;
ERROR: cannot delete from view "ro_view5"
DETAIL: Views that return window functions are not automatically updatable
DETAIL: Views that return window functions are not automatically updatable
.
HINT: To enable deleting from the view, provide an INSTEAD OF DELETE trigger or an unconditional ON DELETE DO INSTEAD rule.
DELETE FROM ro_view6;
ERROR: cannot delete from view "ro_view6"
...
...
@@ -1497,7 +1497,7 @@ SELECT * FROM base_tbl;
ALTER VIEW rw_view1 SET (check_option=here); -- invalid
ERROR: invalid value for "check_option" option
DETAIL: Valid values are "local"
,
and "cascaded".
DETAIL: Valid values are "local" and "cascaded".
ALTER VIEW rw_view1 SET (check_option=local);
INSERT INTO rw_view2 VALUES (-20); -- should fail
ERROR: new row violates WITH CHECK OPTION for view "rw_view1"
...
...
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