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
3a6e4076
Commit
3a6e4076
authored
13 years ago
by
Magnus Hagander
Browse files
Options
Downloads
Patches
Plain Diff
Update regression tests for \d+ modification
Noted by Tom
parent
ebcadba2
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
src/test/regress/expected/inherit.out
+57
-57
57 additions, 57 deletions
src/test/regress/expected/inherit.out
with
57 additions
and
57 deletions
src/test/regress/expected/inherit.out
+
57
−
57
View file @
3a6e4076
...
@@ -945,22 +945,22 @@ CREATE TABLE t4 (a text, c text);
...
@@ -945,22 +945,22 @@ CREATE TABLE t4 (a text, c text);
ALTER TABLE t4 ALTER COLUMN c SET STORAGE EXTERNAL;
ALTER TABLE t4 ALTER COLUMN c SET STORAGE EXTERNAL;
CREATE TABLE t12_storage (LIKE t1 INCLUDING STORAGE, LIKE t2 INCLUDING STORAGE);
CREATE TABLE t12_storage (LIKE t1 INCLUDING STORAGE, LIKE t2 INCLUDING STORAGE);
\d+ t12_storage
\d+ t12_storage
Table "public.t12_storage"
Table "public.t12_storage"
Column | Type | Modifiers | Storage | Description
Column | Type | Modifiers | Storage |
Stats target |
Description
--------+------+-----------+----------+-------------
--------+------+-----------+----------+-------------
-+-------------
a | text | not null | main |
a | text | not null | main |
|
b | text | | extended |
b | text | | extended |
|
c | text | | external |
c | text | | external |
|
Has OIDs: no
Has OIDs: no
CREATE TABLE t12_comments (LIKE t1 INCLUDING COMMENTS, LIKE t2 INCLUDING COMMENTS);
CREATE TABLE t12_comments (LIKE t1 INCLUDING COMMENTS, LIKE t2 INCLUDING COMMENTS);
\d+ t12_comments
\d+ t12_comments
Table "public.t12_comments"
Table "public.t12_comments"
Column | Type | Modifiers | Storage | Description
Column | Type | Modifiers | Storage |
Stats target |
Description
--------+------+-----------+----------+-------------
--------+------+-----------+----------+-------------
-+-------------
a | text | not null | extended | A
a | text | not null | extended |
|
A
b | text | | extended | B
b | text | | extended |
|
B
c | text | | extended | C
c | text | | extended |
|
C
Has OIDs: no
Has OIDs: no
CREATE TABLE t1_inh (LIKE t1 INCLUDING CONSTRAINTS INCLUDING COMMENTS) INHERITS (t1);
CREATE TABLE t1_inh (LIKE t1 INCLUDING CONSTRAINTS INCLUDING COMMENTS) INHERITS (t1);
...
@@ -968,11 +968,11 @@ NOTICE: merging column "a" with inherited definition
...
@@ -968,11 +968,11 @@ NOTICE: merging column "a" with inherited definition
NOTICE: merging column "b" with inherited definition
NOTICE: merging column "b" with inherited definition
NOTICE: merging constraint "t1_a_check" with inherited definition
NOTICE: merging constraint "t1_a_check" with inherited definition
\d+ t1_inh
\d+ t1_inh
Table "public.t1_inh"
Table "public.t1_inh"
Column | Type | Modifiers | Storage | Description
Column | Type | Modifiers | Storage |
Stats target |
Description
--------+------+-----------+----------+-------------
--------+------+-----------+----------+-------------
-+-------------
a | text | not null | main | A
a | text | not null | main |
|
A
b | text | | extended | B
b | text | | extended |
|
B
Check constraints:
Check constraints:
"t1_a_check" CHECK (length(a) > 2)
"t1_a_check" CHECK (length(a) > 2)
Inherits: t1
Inherits: t1
...
@@ -987,12 +987,12 @@ SELECT description FROM pg_description, pg_constraint c WHERE classoid = 'pg_con
...
@@ -987,12 +987,12 @@ SELECT description FROM pg_description, pg_constraint c WHERE classoid = 'pg_con
CREATE TABLE t13_inh () INHERITS (t1, t3);
CREATE TABLE t13_inh () INHERITS (t1, t3);
NOTICE: merging multiple inherited definitions of column "a"
NOTICE: merging multiple inherited definitions of column "a"
\d+ t13_inh
\d+ t13_inh
Table "public.t13_inh"
Table "public.t13_inh"
Column | Type | Modifiers | Storage | Description
Column | Type | Modifiers | Storage |
Stats target |
Description
--------+------+-----------+----------+-------------
--------+------+-----------+----------+-------------
-+-------------
a | text | not null | main |
a | text | not null | main |
|
b | text | | extended |
b | text | | extended |
|
c | text | | external |
c | text | | external |
|
Check constraints:
Check constraints:
"t1_a_check" CHECK (length(a) > 2)
"t1_a_check" CHECK (length(a) > 2)
"t3_a_check" CHECK (length(a) < 5)
"t3_a_check" CHECK (length(a) < 5)
...
@@ -1003,12 +1003,12 @@ Has OIDs: no
...
@@ -1003,12 +1003,12 @@ Has OIDs: no
CREATE TABLE t13_like (LIKE t3 INCLUDING CONSTRAINTS INCLUDING COMMENTS INCLUDING STORAGE) INHERITS (t1);
CREATE TABLE t13_like (LIKE t3 INCLUDING CONSTRAINTS INCLUDING COMMENTS INCLUDING STORAGE) INHERITS (t1);
NOTICE: merging column "a" with inherited definition
NOTICE: merging column "a" with inherited definition
\d+ t13_like
\d+ t13_like
Table "public.t13_like"
Table "public.t13_like"
Column | Type | Modifiers | Storage | Description
Column | Type | Modifiers | Storage |
Stats target |
Description
--------+------+-----------+----------+-------------
--------+------+-----------+----------+-------------
-+-------------
a | text | not null | main | A3
a | text | not null | main |
|
A3
b | text | | extended |
b | text | | extended |
|
c | text | | external | C
c | text | | external |
|
C
Check constraints:
Check constraints:
"t1_a_check" CHECK (length(a) > 2)
"t1_a_check" CHECK (length(a) > 2)
"t3_a_check" CHECK (length(a) < 5)
"t3_a_check" CHECK (length(a) < 5)
...
@@ -1024,11 +1024,11 @@ SELECT description FROM pg_description, pg_constraint c WHERE classoid = 'pg_con
...
@@ -1024,11 +1024,11 @@ SELECT description FROM pg_description, pg_constraint c WHERE classoid = 'pg_con
CREATE TABLE t_all (LIKE t1 INCLUDING ALL);
CREATE TABLE t_all (LIKE t1 INCLUDING ALL);
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "t_all_pkey" for table "t_all"
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "t_all_pkey" for table "t_all"
\d+ t_all
\d+ t_all
Table "public.t_all"
Table "public.t_all"
Column | Type | Modifiers | Storage | Description
Column | Type | Modifiers | Storage |
Stats target |
Description
--------+------+-----------+----------+-------------
--------+------+-----------+----------+-------------
-+-------------
a | text | not null | main | A
a | text | not null | main |
|
A
b | text | | extended | B
b | text | | extended |
|
B
Indexes:
Indexes:
"t_all_pkey" PRIMARY KEY, btree (a)
"t_all_pkey" PRIMARY KEY, btree (a)
"t_all_b_idx" btree (b)
"t_all_b_idx" btree (b)
...
@@ -1065,13 +1065,13 @@ ALTER TABLE ts RENAME aa TO aaa; -- to be failed
...
@@ -1065,13 +1065,13 @@ ALTER TABLE ts RENAME aa TO aaa; -- to be failed
ERROR: cannot rename inherited column "aa"
ERROR: cannot rename inherited column "aa"
ALTER TABLE ts RENAME d TO dd;
ALTER TABLE ts RENAME d TO dd;
\d+ ts
\d+ ts
Table "public.ts"
Table "public.ts"
Column | Type | Modifiers | Storage | Description
Column | Type | Modifiers | Storage |
Stats target |
Description
--------+---------+-----------+---------+-------------
--------+---------+-----------+---------+-------------
-+-------------
aa | integer | | plain |
aa | integer | | plain |
|
b | integer | | plain |
b | integer | | plain |
|
c | integer | | plain |
c | integer | | plain |
|
dd | integer | | plain |
dd | integer | | plain |
|
Inherits: t1,
Inherits: t1,
s1
s1
Has OIDs: no
Has OIDs: no
...
@@ -1085,14 +1085,14 @@ NOTICE: merging multiple inherited definitions of column "aa"
...
@@ -1085,14 +1085,14 @@ NOTICE: merging multiple inherited definitions of column "aa"
NOTICE: merging multiple inherited definitions of column "b"
NOTICE: merging multiple inherited definitions of column "b"
ALTER TABLE t1 RENAME aa TO aaa;
ALTER TABLE t1 RENAME aa TO aaa;
\d+ t4
\d+ t4
Table "public.t4"
Table "public.t4"
Column | Type | Modifiers | Storage | Description
Column | Type | Modifiers | Storage |
Stats target |
Description
--------+---------+-----------+---------+-------------
--------+---------+-----------+---------+-------------
-+-------------
aaa | integer | | plain |
aaa | integer | | plain |
|
b | integer | | plain |
b | integer | | plain |
|
x | integer | | plain |
x | integer | | plain |
|
y | integer | | plain |
y | integer | | plain |
|
z | integer | | plain |
z | integer | | plain |
|
Inherits: t2,
Inherits: t2,
t3
t3
Has OIDs: no
Has OIDs: no
...
@@ -1103,14 +1103,14 @@ ALTER TABLE t1 RENAME aaa TO aaaa;
...
@@ -1103,14 +1103,14 @@ ALTER TABLE t1 RENAME aaa TO aaaa;
ALTER TABLE t1 RENAME b TO bb; -- to be failed
ALTER TABLE t1 RENAME b TO bb; -- to be failed
ERROR: cannot rename inherited column "b"
ERROR: cannot rename inherited column "b"
\d+ ts
\d+ ts
Table "public.ts"
Table "public.ts"
Column | Type | Modifiers | Storage | Description
Column | Type | Modifiers | Storage |
Stats target |
Description
--------+---------+-----------+---------+-------------
--------+---------+-----------+---------+-------------
-+-------------
aaaa | integer | | plain |
aaaa | integer | | plain |
|
b | integer | | plain |
b | integer | | plain |
|
x | integer | | plain |
x | integer | | plain |
|
c | integer | | plain |
c | integer | | plain |
|
d | integer | | plain |
d | integer | | plain |
|
Inherits: t2,
Inherits: t2,
s1
s1
Has OIDs: no
Has OIDs: no
...
...
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