@@ -631,25 +631,25 @@ DROP SERVER s7;
631
631
632
632
-- CREATE FOREIGN TABLE
633
633
CREATE SCHEMA foreign_schema;
634
- CREATE SERVERsc FOREIGN DATA WRAPPER dummy;
634
+ CREATE SERVERs0 FOREIGN DATA WRAPPER dummy;
635
635
CREATE FOREIGN TABLE ft1 (); -- ERROR
636
636
ERROR: syntax error at or near ";"
637
637
LINE 1: CREATE FOREIGN TABLE ft1 ();
638
638
^
639
639
CREATE FOREIGN TABLE ft1 () SERVER no_server; -- ERROR
640
640
ERROR: server "no_server" does not exist
641
- CREATE FOREIGN TABLE ft1 (c1 serial) SERVERsc ; -- ERROR
641
+ CREATE FOREIGN TABLE ft1 (c1 serial) SERVERs0 ; -- ERROR
642
642
NOTICE: CREATE FOREIGN TABLE will create implicit sequence "ft1_c1_seq" for serial column "ft1.c1"
643
643
ERROR: default values on foreign tables are not supported
644
- CREATE FOREIGN TABLE ft1 () SERVERsc WITH OIDS; -- ERROR
644
+ CREATE FOREIGN TABLE ft1 () SERVERs0 WITH OIDS; -- ERROR
645
645
ERROR: syntax error at or near "WITH OIDS"
646
- LINE 1: CREATE FOREIGN TABLE ft1 () SERVERsc WITH OIDS;
646
+ LINE 1: CREATE FOREIGN TABLE ft1 () SERVERs0 WITH OIDS;
647
647
^
648
648
CREATE FOREIGN TABLE ft1 (
649
649
c1 integer NOT NULL,
650
650
c2 text,
651
651
c3 date
652
- ) SERVERsc OPTIONS (delimiter ',', quote '"');
652
+ ) SERVERs0 OPTIONS (delimiter ',', quote '"');
653
653
COMMENT ON FOREIGN TABLE ft1 IS 'ft1';
654
654
COMMENT ON COLUMN ft1.c1 IS 'ft1.c1';
655
655
\d+ ft1
@@ -659,14 +659,14 @@ COMMENT ON COLUMN ft1.c1 IS 'ft1.c1';
659
659
c1 | integer | not null | plain | ft1.c1
660
660
c2 | text | | extended |
661
661
c3 | date | | plain |
662
- Server:sc
662
+ Server:s0
663
663
Has OIDs: no
664
664
665
665
\det+
666
666
List of foreign tables
667
667
Schema | Table | Server | Options
668
668
--------+-------+--------+----------------------------
669
- public | ft1 |sc | {"delimiter=,","quote=\""}
669
+ public | ft1 |s0 | {"delimiter=,","quote=\""}
670
670
(1 row)
671
671
672
672
CREATE INDEX id_ft1_c2 ON ft1 (c2); -- ERROR
@@ -737,7 +737,7 @@ Foreign table "foreign_schema.foreign_table_1"
737
737
c7 | integer |
738
738
c8 | text |
739
739
c10 | integer |
740
- Server:sc
740
+ Server:s0
741
741
742
742
-- Information schema
743
743
SELECT * FROM information_schema.foreign_data_wrappers ORDER BY 1, 2;
@@ -757,11 +757,11 @@ SELECT * FROM information_schema.foreign_data_wrapper_options ORDER BY 1, 2, 3;
757
757
SELECT * FROM information_schema.foreign_servers ORDER BY 1, 2;
758
758
foreign_server_catalog | foreign_server_name | foreign_data_wrapper_catalog | foreign_data_wrapper_name | foreign_server_type | foreign_server_version | authorization_identifier
759
759
------------------------+---------------------+------------------------------+---------------------------+---------------------+------------------------+--------------------------
760
+ regression | s0 | regression | dummy | | | foreign_data_user
760
761
regression | s4 | regression | foo | oracle | | foreign_data_user
761
762
regression | s5 | regression | foo | | 15.0 | regress_test_role
762
763
regression | s6 | regression | foo | | 16.0 | regress_test_indirect
763
764
regression | s8 | regression | postgresql | | | foreign_data_user
764
- regression | sc | regression | dummy | | | foreign_data_user
765
765
regression | t1 | regression | foo | | | regress_test_indirect
766
766
regression | t2 | regression | foo | | | regress_test_role
767
767
(7 rows)
@@ -823,7 +823,7 @@ SELECT * FROM information_schema.role_usage_grants WHERE object_type LIKE 'FOREI
823
823
SELECT * FROM information_schema.foreign_tables ORDER BY 1, 2, 3;
824
824
foreign_table_catalog | foreign_table_schema | foreign_table_name | foreign_server_catalog | foreign_server_name
825
825
-----------------------+----------------------+--------------------+------------------------+---------------------
826
- regression | foreign_schema | foreign_table_1 | regression |sc
826
+ regression | foreign_schema | foreign_table_1 | regression |s0
827
827
(1 row)
828
828
829
829
SELECT * FROM information_schema.foreign_table_options ORDER BY 1, 2, 3, 4;
@@ -1106,7 +1106,7 @@ DROP ROLE unprivileged_role;
1106
1106
DROP ROLE regress_test_role2;
1107
1107
DROP FOREIGN DATA WRAPPER postgresql CASCADE;
1108
1108
DROP FOREIGN DATA WRAPPER dummy CASCADE;
1109
- NOTICE: drop cascades to serversc
1109
+ NOTICE: drop cascades to servers0
1110
1110
\c
1111
1111
DROP ROLE foreign_data_user;
1112
1112
-- At this point we should have no wrappers, no servers, and no mappings.