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
5395aed9
Commit
5395aed9
authored
20 years ago
by
Bruce Momjian
Browse files
Options
Downloads
Patches
Plain Diff
Add regression tests for ALTER INDEX.
Gavin Sherry
parent
f78ecbf2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/test/regress/expected/alter_table.out
+2
-2
2 additions, 2 deletions
src/test/regress/expected/alter_table.out
src/test/regress/sql/alter_table.sql
+2
-2
2 additions, 2 deletions
src/test/regress/sql/alter_table.sql
with
4 additions
and
4 deletions
src/test/regress/expected/alter_table.out
+
2
−
2
View file @
5395aed9
...
...
@@ -126,8 +126,8 @@ DROP TABLE tmp_new;
DROP TABLE tmp_new2;
-- ALTER TABLE ... RENAME on non-table relations
-- renaming indexes (FIXME: this should probably test the index's functionality)
ALTER
TABLE
onek_unique1 RENAME TO tmp_onek_unique1;
ALTER
TABLE
tmp_onek_unique1 RENAME TO onek_unique1;
ALTER
INDEX
onek_unique1 RENAME TO tmp_onek_unique1;
ALTER
INDEX
tmp_onek_unique1 RENAME TO onek_unique1;
-- renaming views
CREATE VIEW tmp_view (unique1) AS SELECT unique1 FROM tenk1;
ALTER TABLE tmp_view RENAME TO tmp_view_new;
...
...
This diff is collapsed.
Click to expand it.
src/test/regress/sql/alter_table.sql
+
2
−
2
View file @
5395aed9
...
...
@@ -166,8 +166,8 @@ DROP TABLE tmp_new2;
-- ALTER TABLE ... RENAME on non-table relations
-- renaming indexes (FIXME: this should probably test the index's functionality)
ALTER
TABLE
onek_unique1
RENAME
TO
tmp_onek_unique1
;
ALTER
TABLE
tmp_onek_unique1
RENAME
TO
onek_unique1
;
ALTER
INDEX
onek_unique1
RENAME
TO
tmp_onek_unique1
;
ALTER
INDEX
tmp_onek_unique1
RENAME
TO
onek_unique1
;
-- renaming views
CREATE
VIEW
tmp_view
(
unique1
)
AS
SELECT
unique1
FROM
tenk1
;
ALTER
TABLE
tmp_view
RENAME
TO
tmp_view_new
;
...
...
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