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
39314efa
Commit
39314efa
authored
Mar 03, 2018
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor fixes for reloptions tests
Follow-up to
4b95cc1d
Author: Nikolay Shaplov <dhyan@nataraj.su>
parent
8d90b4d0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
src/test/regress/expected/reloptions.out
src/test/regress/expected/reloptions.out
+2
-2
src/test/regress/sql/reloptions.sql
src/test/regress/sql/reloptions.sql
+2
-2
No files found.
src/test/regress/expected/reloptions.out
View file @
39314efa
...
@@ -77,7 +77,7 @@ SELECT reloptions FROM pg_class WHERE oid = 'reloptions_test'::regclass;
...
@@ -77,7 +77,7 @@ SELECT reloptions FROM pg_class WHERE oid = 'reloptions_test'::regclass;
ALTER TABLE reloptions_test RESET (autovacuum_enabled,
ALTER TABLE reloptions_test RESET (autovacuum_enabled,
autovacuum_analyze_scale_factor);
autovacuum_analyze_scale_factor);
SELECT reloptions FROM pg_class WHERE oid = 'reloptions_test'::regclass AND
SELECT reloptions FROM pg_class WHERE oid = 'reloptions_test'::regclass AND
reloptions IS NULL;
reloptions IS NULL;
reloptions
reloptions
------------
------------
...
@@ -86,7 +86,7 @@ reloptions IS NULL;
...
@@ -86,7 +86,7 @@ reloptions IS NULL;
-- RESET fails if a value is specified
-- RESET fails if a value is specified
ALTER TABLE reloptions_test RESET (fillfactor=12);
ALTER TABLE reloptions_test RESET (fillfactor=12);
ERROR: RESET must not include values for parameters
ERROR: RESET must not include values for parameters
-- The OIDS option is not stored
-- The OIDS option is not stored
as reloption
DROP TABLE reloptions_test;
DROP TABLE reloptions_test;
CREATE TABLE reloptions_test(i INT) WITH (fillfactor=20, oids=true);
CREATE TABLE reloptions_test(i INT) WITH (fillfactor=20, oids=true);
SELECT reloptions, relhasoids FROM pg_class WHERE oid = 'reloptions_test'::regclass;
SELECT reloptions, relhasoids FROM pg_class WHERE oid = 'reloptions_test'::regclass;
...
...
src/test/regress/sql/reloptions.sql
View file @
39314efa
...
@@ -47,12 +47,12 @@ SELECT reloptions FROM pg_class WHERE oid = 'reloptions_test'::regclass;
...
@@ -47,12 +47,12 @@ SELECT reloptions FROM pg_class WHERE oid = 'reloptions_test'::regclass;
ALTER
TABLE
reloptions_test
RESET
(
autovacuum_enabled
,
ALTER
TABLE
reloptions_test
RESET
(
autovacuum_enabled
,
autovacuum_analyze_scale_factor
);
autovacuum_analyze_scale_factor
);
SELECT
reloptions
FROM
pg_class
WHERE
oid
=
'reloptions_test'
::
regclass
AND
SELECT
reloptions
FROM
pg_class
WHERE
oid
=
'reloptions_test'
::
regclass
AND
reloptions
IS
NULL
;
reloptions
IS
NULL
;
-- RESET fails if a value is specified
-- RESET fails if a value is specified
ALTER
TABLE
reloptions_test
RESET
(
fillfactor
=
12
);
ALTER
TABLE
reloptions_test
RESET
(
fillfactor
=
12
);
-- The OIDS option is not stored
-- The OIDS option is not stored
as reloption
DROP
TABLE
reloptions_test
;
DROP
TABLE
reloptions_test
;
CREATE
TABLE
reloptions_test
(
i
INT
)
WITH
(
fillfactor
=
20
,
oids
=
true
);
CREATE
TABLE
reloptions_test
(
i
INT
)
WITH
(
fillfactor
=
20
,
oids
=
true
);
SELECT
reloptions
,
relhasoids
FROM
pg_class
WHERE
oid
=
'reloptions_test'
::
regclass
;
SELECT
reloptions
,
relhasoids
FROM
pg_class
WHERE
oid
=
'reloptions_test'
::
regclass
;
...
...
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