-
Notifications
You must be signed in to change notification settings - Fork 666
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Морозов Константин
authored and
Морозов Константин
committed
Jul 2, 2024
1 parent
58fef24
commit 655df3d
Showing
4 changed files
with
52 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
src/test/regress/expected/non_super_user_create_existing_extension.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
CREATE SCHEMA non_super_user_create_existing_extension; | ||
SET search_path TO non_super_user_create_existing_extension; | ||
SELECT CURRENT_USER; | ||
current_user | ||
--------------------------------------------------------------------- | ||
postgres | ||
(1 row) | ||
|
||
CREATE EXTENSION if not exists "uuid-ossp" SCHEMA public; | ||
CREATE EXTENSION if not exists "uuid-ossp" SCHEMA public; | ||
NOTICE: extension "uuid-ossp" already exists, skipping | ||
CREATE USER non_super_user_ext; | ||
SET ROLE non_super_user_ext; | ||
SELECT CURRENT_USER; | ||
current_user | ||
--------------------------------------------------------------------- | ||
non_super_user_ext | ||
(1 row) | ||
|
||
CREATE EXTENSION if not exists "uuid-ossp" SCHEMA public; | ||
NOTICE: extension "uuid-ossp" already exists, skipping | ||
RESET ROLE; | ||
SELECT CURRENT_USER; | ||
current_user | ||
--------------------------------------------------------------------- | ||
postgres | ||
(1 row) | ||
|
||
DROP USER non_super_user_ext; | ||
DROP SCHEMA non_super_user_create_existing_extension CASCADE; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
src/test/regress/sql/non_super_user_create_existing_extension.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
CREATE SCHEMA non_super_user_create_existing_extension; | ||
SET search_path TO non_super_user_create_existing_extension; | ||
|
||
SELECT CURRENT_USER; | ||
CREATE EXTENSION if not exists "uuid-ossp" SCHEMA public; | ||
CREATE EXTENSION if not exists "uuid-ossp" SCHEMA public; | ||
CREATE USER non_super_user_ext; | ||
SET ROLE non_super_user_ext; | ||
SELECT CURRENT_USER; | ||
CREATE EXTENSION if not exists "uuid-ossp" SCHEMA public; | ||
RESET ROLE; | ||
SELECT CURRENT_USER; | ||
DROP USER non_super_user_ext; | ||
DROP SCHEMA non_super_user_create_existing_extension CASCADE; |