Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
2034086e
Commit
2034086e
authored
23 years ago
by
Tom Lane
Browse files
Options
Downloads
Patches
Plain Diff
Correct some errors in plpgsql examples, as reported by Junichi Kobayasi.
parent
0b3bca6c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/src/sgml/plsql.sgml
+7
-7
7 additions, 7 deletions
doc/src/sgml/plsql.sgml
with
7 additions
and
7 deletions
doc/src/sgml/plsql.sgml
+
7
−
7
View file @
2034086e
<!--
$Header: /cvsroot/pgsql/doc/src/sgml/Attic/plsql.sgml,v 2.4
1
2001/10/09 04:
1
5:
38
tgl Exp $
$Header: /cvsroot/pgsql/doc/src/sgml/Attic/plsql.sgml,v 2.4
2
2001/10/09 04:
5
5:
11
tgl Exp $
-->
<chapter id="plpgsql">
...
...
@@ -519,8 +519,8 @@ create function cs_refresh_one_mv(integer) returns integer as '
-- The mv_name column of cs_materialized_views stores view
-- names.
TRUNCATE TABLE table_data.mv_name;
INSERT INTO table_data.mv_name || '' '' || table_data.mv_query;
EXECUTE ''
TRUNCATE TABLE
'' || quote_ident(
table_data.mv_name
)
;
EXECUTE ''
INSERT INTO
'' || quote_ident(
table_data.mv_name
)
|| '' '' || table_data.mv_query;
return 1;
end;
...
...
@@ -1151,7 +1151,7 @@ END LOOP;
FOR i IN 1..10 LOOP
-- some expressions here
RAISE NOTICE 'i is %',i;
RAISE NOTICE
'
'i is %'
'
,i;
END LOOP;
FOR i IN REVERSE 1..10 LOOP
...
...
@@ -1304,9 +1304,9 @@ BEGIN
-- Now "mviews" has one record from cs_materialized_views
PERFORM cs_log(''Refreshing materialized view '' || mview.mv_name || ''...'');
TRUNCATE TABLE mview.mv_name;
INSERT INTO mview.mv_name || '' '' || mview.mv_query;
PERFORM cs_log(''Refreshing materialized view '' ||
quote_ident(
mview
s
.mv_name
)
|| ''...'');
EXECUTE ''
TRUNCATE TABLE
'' || quote_ident(
mview
s
.mv_name
)
;
EXECUTE ''
INSERT INTO
'' || quote_ident(
mview
s
.mv_name
)
|| '' '' || mview
s
.mv_query;
END LOOP;
PERFORM cs_log(''Done refreshing materialized views.'');
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment