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
2034086e
Commit
2034086e
authored
Oct 09, 2001
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correct some errors in plpgsql examples, as reported by Junichi Kobayasi.
parent
0b3bca6c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
doc/src/sgml/plsql.sgml
doc/src/sgml/plsql.sgml
+7
-7
No files found.
doc/src/sgml/plsql.sgml
View file @
2034086e
<
!--
<
!--
$
Header
:
/
cvsroot
/
pgsql
/
doc
/
src
/
sgml
/
Attic
/
plsql
.
sgml
,
v
2.4
1
2001
/
10
/
09
04
:
15
:
38
tgl
Exp
$
$
Header
:
/
cvsroot
/
pgsql
/
doc
/
src
/
sgml
/
Attic
/
plsql
.
sgml
,
v
2.4
2
2001
/
10
/
09
04
:
55
:
11
tgl
Exp
$
-->
-->
<
chapter
id
=
"plpgsql"
>
<
chapter
id
=
"plpgsql"
>
...
@@ -519,8 +519,8 @@ create function cs_refresh_one_mv(integer) returns integer as '
...
@@ -519,8 +519,8 @@ create function cs_refresh_one_mv(integer) returns integer as '
--
The
mv_name
column
of
cs_materialized_views
stores
view
--
The
mv_name
column
of
cs_materialized_views
stores
view
--
names
.
--
names
.
TRUNCATE
TABLE
table_data
.
mv_name
;
EXECUTE
''
TRUNCATE
TABLE
''
||
quote_ident
(
table_data
.
mv_name
)
;
INSERT
INTO
table_data
.
mv_name
||
''
''
||
table_data
.
mv_query
;
EXECUTE
''
INSERT
INTO
''
||
quote_ident
(
table_data
.
mv_name
)
||
''
''
||
table_data
.
mv_query
;
return
1
;
return
1
;
end
;
end
;
...
@@ -1151,7 +1151,7 @@ END LOOP;
...
@@ -1151,7 +1151,7 @@ END LOOP;
FOR i IN 1..10 LOOP
FOR i IN 1..10 LOOP
-- some expressions here
-- some expressions here
RAISE NOTICE '
i
is
%
',i;
RAISE NOTICE '
'i is %'
',i;
END LOOP;
END LOOP;
FOR i IN REVERSE 1..10 LOOP
FOR i IN REVERSE 1..10 LOOP
...
@@ -1304,9 +1304,9 @@ BEGIN
...
@@ -1304,9 +1304,9 @@ BEGIN
-- Now "mviews" has one record from cs_materialized_views
-- Now "mviews" has one record from cs_materialized_views
PERFORM cs_log(''Refreshing materialized view '' ||
mview.mv_name
|| ''...'');
PERFORM cs_log(''Refreshing materialized view '' ||
quote_ident(mviews.mv_name)
|| ''...'');
TRUNCATE TABLE mview.mv_name
;
EXECUTE ''TRUNCATE TABLE '' || quote_ident(mviews.mv_name)
;
INSERT INTO mview.mv_name || '' '' || mview
.mv_query;
EXECUTE ''INSERT INTO '' || quote_ident(mviews.mv_name) || '' '' || mviews
.mv_query;
END LOOP;
END LOOP;
PERFORM cs_log(''Done refreshing materialized views.'');
PERFORM cs_log(''Done refreshing materialized views.'');
...
...
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