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
350f4778
Commit
350f4778
authored
Jun 09, 2020
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Spelling adjustments
similar to
0fd2a79a
parent
b1d32d3e
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
16 additions
and
16 deletions
+16
-16
contrib/pg_trgm/trgm_regexp.c
contrib/pg_trgm/trgm_regexp.c
+2
-2
src/backend/commands/explain.c
src/backend/commands/explain.c
+2
-2
src/backend/optimizer/plan/planner.c
src/backend/optimizer/plan/planner.c
+1
-1
src/pl/plpgsql/src/expected/plpgsql_control.out
src/pl/plpgsql/src/expected/plpgsql_control.out
+2
-2
src/pl/plpgsql/src/pl_exec.c
src/pl/plpgsql/src/pl_exec.c
+6
-6
src/pl/plpgsql/src/pl_gram.y
src/pl/plpgsql/src/pl_gram.y
+2
-2
src/pl/plpgsql/src/plpgsql.h
src/pl/plpgsql/src/plpgsql.h
+1
-1
No files found.
contrib/pg_trgm/trgm_regexp.c
View file @
350f4778
...
...
@@ -73,7 +73,7 @@
* (two prefix colors plus a state number from the original NFA) an
* "enter key".
*
* Each arc of the expanded graph is label
l
ed with a trigram that must be
* Each arc of the expanded graph is labeled with a trigram that must be
* present in the string to match. We can construct this from an out-arc of
* the underlying NFA state by combining the expanded state's prefix with the
* color label of the underlying out-arc, if neither prefix position is
...
...
@@ -123,7 +123,7 @@
* false positives that we would have to traverse a large fraction of the
* index, the graph is simplified further in a lossy fashion by removing
* color trigrams. When a color trigram is removed, the states connected by
* any arcs label
l
ed with that trigram are merged.
* any arcs labeled with that trigram are merged.
*
* Trigrams do not all have equivalent value for searching: some of them are
* more frequent and some of them are less frequent. Ideally, we would like
...
...
src/backend/commands/explain.c
View file @
350f4778
...
...
@@ -4238,7 +4238,7 @@ ExplainOpenGroup(const char *objtype, const char *labelname,
/*
* In YAML format, the grouping stack is an integer list. 0 means
* we've emitted nothing at this grouping level AND this grouping
* level is unlabel
l
ed and must be marked with "- ". See
* level is unlabeled and must be marked with "- ". See
* ExplainYAMLLineStarting().
*/
ExplainYAMLLineStarting
(
es
);
...
...
@@ -4601,7 +4601,7 @@ ExplainJSONLineEnding(ExplainState *es)
*
* YAML lines are ordinarily indented by two spaces per indentation level.
* The text emitted for each property begins just prior to the preceding
* line-break, except for the first property in an unlabel
l
ed group, for which
* line-break, except for the first property in an unlabeled group, for which
* it begins immediately after the "- " that introduces the group. The first
* property of the group appears on the same line as the opening "- ".
*/
...
...
src/backend/optimizer/plan/planner.c
View file @
350f4778
...
...
@@ -367,7 +367,7 @@ standard_planner(Query *parse, const char *query_string, int cursorOptions,
* parallel-restricted, and in either case it should be OK to impose
* parallel-mode restrictions. If that ends up breaking something, then
* either some function the user included in the query is incorrectly
* label
l
ed as parallel-safe or parallel-restricted when in reality it's
* labeled as parallel-safe or parallel-restricted when in reality it's
* parallel-unsafe, or else the query planner itself has a bug.
*/
glob
->
parallelModeNeeded
=
glob
->
parallelModeOK
&&
...
...
src/pl/plpgsql/src/expected/plpgsql_control.out
View file @
350f4778
...
...
@@ -349,7 +349,7 @@ begin
end loop flbl1;
end;
$$ language plpgsql;
ERROR: end label "flbl1" specified for unlabel
l
ed block
ERROR: end label "flbl1" specified for unlabeled block
LINE 5: end loop flbl1;
^
-- should fail: end label does not match start label
...
...
@@ -374,7 +374,7 @@ begin
end loop outer_label;
end;
$$ language plpgsql;
ERROR: end label "outer_label" specified for unlabel
l
ed block
ERROR: end label "outer_label" specified for unlabeled block
LINE 6: end loop outer_label;
^
-- unlabeled exit matches no blocks
...
...
src/pl/plpgsql/src/pl_exec.c
View file @
350f4778
...
...
@@ -212,21 +212,21 @@ static HTAB *shared_cast_hash = NULL;
{ \
if (estate->exitlabel == NULL) \
{ \
/* unlabel
l
ed EXIT terminates this loop */
\
/* unlabeled EXIT terminates this loop */
\
rc = PLPGSQL_RC_OK; \
exit_action; \
} \
else if ((looplabel) != NULL && \
strcmp(looplabel, estate->exitlabel) == 0) \
{ \
/* label
l
ed EXIT matching this loop, so terminate loop */
\
/* labeled EXIT matching this loop, so terminate loop */
\
estate->exitlabel = NULL; \
rc = PLPGSQL_RC_OK; \
exit_action; \
} \
else \
{ \
/* non-matching label
l
ed EXIT, propagate RC_EXIT out */
\
/* non-matching labeled EXIT, propagate RC_EXIT out */
\
exit_action; \
} \
} \
...
...
@@ -234,19 +234,19 @@ static HTAB *shared_cast_hash = NULL;
{ \
if (estate->exitlabel == NULL) \
{ \
/* unlabel
l
ed CONTINUE matches this loop, so continue in loop */
\
/* unlabeled CONTINUE matches this loop, so continue in loop */
\
rc = PLPGSQL_RC_OK; \
} \
else if ((looplabel) != NULL && \
strcmp(looplabel, estate->exitlabel) == 0) \
{ \
/* label
l
ed CONTINUE matching this loop, so continue in loop */
\
/* labeled CONTINUE matching this loop, so continue in loop */
\
estate->exitlabel = NULL; \
rc = PLPGSQL_RC_OK; \
} \
else \
{ \
/* non-matching label
l
ed CONTINUE, propagate RC_CONTINUE out */
\
/* non-matching labeled CONTINUE, propagate RC_CONTINUE out */
\
exit_action; \
} \
} \
...
...
src/pl/plpgsql/src/pl_gram.y
View file @
350f4778
...
...
@@ -1725,7 +1725,7 @@ stmt_exit : exit_type opt_label opt_exitcond
{
/*
* No label, so make sure there is some loop (an
* unlabel
l
ed EXIT does not match a block, so this
* unlabeled EXIT does not match a block, so this
* is the same test for both EXIT and CONTINUE)
*/
if (plpgsql_ns_find_nearest_loop(plpgsql_ns_top()) == NULL)
...
...
@@ -3749,7 +3749,7 @@ check_labels(const char *start_label, const char *end_label, int end_location)
if (!start_label)
ereport(ERROR,
(errcode(ERRCODE_SYNTAX_ERROR),
errmsg("end label \"%s\" specified for unlabel
l
ed block",
errmsg("end label \"%s\" specified for unlabeled block",
end_label),
parser_errposition(end_location)));
...
...
src/pl/plpgsql/src/plpgsql.h
View file @
350f4778
...
...
@@ -833,7 +833,7 @@ typedef struct PLpgSQL_stmt_exit
int
lineno
;
unsigned
int
stmtid
;
bool
is_exit
;
/* Is this an exit or a continue? */
char
*
label
;
/* NULL if it's an unlabel
l
ed EXIT/CONTINUE */
char
*
label
;
/* NULL if it's an unlabeled EXIT/CONTINUE */
PLpgSQL_expr
*
cond
;
}
PLpgSQL_stmt_exit
;
...
...
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