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
fde5c037
Commit
fde5c037
authored
Jan 27, 2017
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve comments about ProcessUtility's queryString parameter.
Per discussion with Craig Ringer.
parent
fefb86b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
src/backend/tcop/utility.c
src/backend/tcop/utility.c
+12
-3
No files found.
src/backend/tcop/utility.c
View file @
fde5c037
...
@@ -311,13 +311,22 @@ CheckRestrictedOperation(const char *cmdname)
...
@@ -311,13 +311,22 @@ CheckRestrictedOperation(const char *cmdname)
* completionTag: points to a buffer of size COMPLETION_TAG_BUFSIZE
* completionTag: points to a buffer of size COMPLETION_TAG_BUFSIZE
* in which to store a command completion status string.
* in which to store a command completion status string.
*
*
*
Notes: as of PG 8.4, caller MUST supply a queryString; it is not
*
Caller MUST supply a queryString; it is not allowed (anymore) to pass NULL.
*
allowed anymore to pass NULL. (If you really don't have source text
,
*
If you really don't have source text, you can pass a constant string
,
*
you can pass a constant string, perhaps "(query not available)".)
*
perhaps "(query not available)".
*
*
* completionTag is only set nonempty if we want to return a nondefault status.
* completionTag is only set nonempty if we want to return a nondefault status.
*
*
* completionTag may be NULL if caller doesn't want a status string.
* completionTag may be NULL if caller doesn't want a status string.
*
* Note for users of ProcessUtility_hook: the same queryString may be passed
* to multiple invocations of ProcessUtility when processing a query string
* containing multiple semicolon-separated statements. One should use
* pstmt->stmt_location and pstmt->stmt_len to identify the substring
* containing the current statement. Keep in mind also that some utility
* statements (e.g., CREATE SCHEMA) will recurse to ProcessUtility to process
* sub-statements, often passing down the same queryString, stmt_location,
* and stmt_len that were given for the whole statement.
*/
*/
void
void
ProcessUtility
(
PlannedStmt
*
pstmt
,
ProcessUtility
(
PlannedStmt
*
pstmt
,
...
...
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