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
5395aed9
Commit
5395aed9
authored
Aug 28, 2004
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add regression tests for ALTER INDEX.
Gavin Sherry
parent
f78ecbf2
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/alter_table.out
src/test/regress/expected/alter_table.out
+2
-2
src/test/regress/sql/alter_table.sql
src/test/regress/sql/alter_table.sql
+2
-2
No files found.
src/test/regress/expected/alter_table.out
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;
...
...
src/test/regress/sql/alter_table.sql
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
;
...
...
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