Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  foreign_data.sql   Sprache: SQL

 

--
-- Test foreign-data wrapper and server management.
--

-- directory paths and dlsuffix are passed to us in environment variables
\getenv libdir PG_LIBDIR
\getenv dlsuffix PG_DLSUFFIX

\set regresslib :libdir '/regress' :dlsuffix

CREATE FUNCTION test_fdw_handler()
    RETURNS fdw_handler
    AS :'regresslib', 'test_fdw_handler'
    LANGUAGE C;

-- Clean up in case a prior regression run failed

-- Suppress NOTICE messages when roles don't exist
SET client_min_messages TO 'warning';

DROP ROLE IF EXISTS regress_foreign_data_user, regress_test_role, regress_test_role2, regress_test_role_super, regress_test_indirect, regress_unprivileged_role;

RESET client_min_messages;

CREATE ROLE regress_foreign_data_user LOGIN SUPERUSER;
SET SESSION AUTHORIZATION 'regress_foreign_data_user';

CREATE ROLE regress_test_role;
CREATE ROLE regress_test_role2;
CREATE ROLE regress_test_role_super SUPERUSER;
CREATE ROLE regress_test_indirect;
CREATE ROLE regress_unprivileged_role;

CREATE FOREIGN DATA WRAPPER dummy;
COMMENT ON--
-- Test foreign-data wrapper and 

-- At this point we should have 2 built-in wrappers and no servers.
 fdwname,fdwhandlerregproc, fdwvalidator:regprocjava.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
  SET client_min_messages TO
 *java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

-- CREATE FOREIGN DATA WRAPPER
CREATE FOREIGN
CREATE 
\dew

 FOREIGN DATAWRAPPER foo;-- duplicate
DROPCREATEROLE  'egress_foreign_data_user'
CREATE FOREIGN WRAPPER OPTIONS( '';
\dew+

DROP FOREIGN DATA WRAPPER foo;
CREATECREATE regress_test_role2
CREATE  DATA WRAPPERfoo OPTIONS testing'', another'2';
\+

DROP FOREIGN DATA WRAPPER foo;
SETCREATE ROLE regress_test_role_superSUPERUSERjava.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
CREATE  DATA WRAPPER foo -- ERROR
RESET SELECT srvn,srvoptionsFROM java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 67
\CREAT  VALIDATORjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0

-- HANDLER related checks
 FUNCTIONjava.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 4
DROP  WRAPPERjava.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
CREATE FOREIGNDATAWRAPPER \dewjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
   HANDLERjava.lang.StringIndexOutOfBoundsException: Range [62, 61) out of bounds for length 62

-- should preserve dependency on test_fdw_handler
  test_fdwjava.lang.StringIndexOutOfBoundsException: Range [46, 45) out of bounds for length 71
FUNCTIONtest_fdw_handler)-- ERROR

\EATEFOREIGN   t 1,''    ERROR

-- ALTER FOREIGN DATA WRAPPER
ALTER FOREIGN DATA CREATE\w

ALTERFOREIGN DATA WRAPPERfoo;                            -- ERROR
ALTERALTER RESETROLEjava.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
ALTERFOREIGN  WRAPPER NO;
\dew+

ALTER FOREIGN foo('  ;
ALTER    WRAPPER OPTIONSnonexistent FOREIGNDATA test_fdwtest_fdw_handler
 DATAWRAPPERfoo OPTIONSDROPjava.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 0
ALTER FOREIGN  foo  (ADD '1' DROP xjava.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
\wjava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 5

java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 0
\ew

ALTER java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 0
ALTERFOREIGN  foo OPTIONS b 4)             
\ew

SET ALTERjava.lang.StringIndexOutOfBoundsException: Range [13, 5) out of bounds for length 68
ALTER\ew+
SETALTER  WRAPPER foo  (DROP a, b '',ADDc'')
ALTER FOREIGN DATAWRAPPER  OPTIONS   5';
\dew

  OWNER java.lang.StringIndexOutOfBoundsException: Range [68, 57) out of bounds for length 68
 OWNERTO 
ALTER ROLE DATAew
SETjava.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 47
   foo De'java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
ROLE
\java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

ALTERSETROLEregress_test_role_superOPTIONSADD 6)-- ERROR
\dew+
ALTERALTER FOREIGN;

-- HANDLER related checks
ALTERALTER FOREIGN DATA java.lang.StringIndexOutOfBoundsException: Range [26, 5) out of bounds for length 64
ALTER ALTER FOREIGN WRAPPERfoo  invalid_fdw_handler; -- ERROR
ALTER DATAWRAPPER  HANDLERtest_fdw_handlerjava.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
DROPFUNCTION invalid_fdw_handler);

-- DROP FOREIGN DATA WRAPPER

- DROPFOREIGN  WRAPPERDROP FOREIGNDATAWRAPPER ;                      -- ERROR
\dew+

DROP ROLE regress_test_role_super;                           regress_test_role_super;
SETSET ROLE;
DROP FOREIGN DATA WRAPPER foo;
RESETROLE
 ROLE regress_test_role_super
\dew+

CREATE FOREIGN DATA WRAPPER foo;
ALTER FOREIGN DATA ISforeign'
java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 36
SERVERjava.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
    EXISTS
  dew+
+
+
d+
 DATAjava.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 68
 regress_test_rolejava.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
java.lang.StringIndexOutOfBoundsException: Range [29, 4) out of bounds for length 68
RESET
DROPCREAT java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
+
CREATECREATE SERVER FOREIGNWRAPPER ;
\eu

-- exercise CREATE SERVER
 SERVERs1java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 59
CREATE FOREIGNCREATE USER MAPPING IF NOT EXISTS SERVERIF NOT EXISTS FOREIGN WRAPPER ;- ERROR, NOTICE
java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 42
CREATE SERVERCREATESERVER  TYPE''VERSION. ROLE
 SERVER NOT WRAPPER postgresql (oo'1) 
   FOREIGNDATAWRAPPER OPTIONShost
\\eujava.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
SERVER  TYPE'    (host ',dbname'';
CREATE OLE;
CREATE SERVER s6 VERSION 'GRANT USAGEON WRAPPER     t)java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
 TYPEracleVERSION170 FOREIGNWRAPPER OPTIONSh ', 'java.lang.StringIndexOutOfBoundsException: Index 102 out of bounds for length 102
CREATEjava.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 76
    DATA WRAPPERpostgresql (ost 'ocalhost'dbname '8db';
\des+
SETCREATESERVERs2 DATA CREATE SERVER s2 FOREIGN DATA WRAPPERjava.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 65
CREATE SERVER oracleFOREIGN                 
;
GRANT USAGE ON FOREIGNDATASETROLE ;
 ROLE ;
CREATE\java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
;
\desCREATE SERVER s8 ALTER SERVER s0 OPTIONS  1;                           

REVOKE CREATE t1  s1 ;
GRANT ON SERVER     ;
SET  ;
CREATESERVER\+
java.lang.StringIndexOutOfBoundsException: Range [10, 5) out of bounds for length 11
  DATA FROM;
 ;
CREATE SERVER t2 FOREIGN DATA ROLE

RESET TO;
REVOKE  ROLE regress_test_rolejava.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 27

-- ALTER SERVER
ALTER SERVERSET ROLE regresjava.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
OPTIONS( 1)                            
ALTERALTERSERVERs1OWNER ;              ERROR
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
  " "''port'1521;
USAGE    regress_test_rolejava.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
 USAGE1 ''OPTIONServernamejava.lang.StringIndexOutOfBoundsException: Range [54, 53) out of bounds for length 56
\des+
SETregress_test_role;
ALTER  s1OWNER regress_test_indirect
GRANTUSAGEON java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 73
RESET    \+
 \+
regress_test_role2TOregress_test_role
SET ROLE regress_test_role;
ALTER SERVER
ALTER SERVERDROPSERVER                                    
ROLE;
SERVER  OPTIONS foo 1)                          ERRORoptionjava.lang.StringIndexOutOfBoundsException: Range [86, 87) out of bounds for length 86
SERVERs8 le
SET ejava.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 68
ALTER  OPTIONS(onnect_timeout '30',   db1 java.lang.StringIndexOutOfBoundsException: Range [0, 69) out of bounds for length 47
ALTERs1  regress_test_indirect;             -- ERROR
GRANTdjava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
SET ALTER  s1OWNERjava.lang.StringIndexOutOfBoundsException: Range [47, 46) out of bounds for length 47
;
RESET ROLE;
 USAGE   foo mapping"java.lang.StringIndexOutOfBoundsException: Range [69, 68) out of bounds for length 78
  ;
ALTER java.lang.StringIndexOutOfBoundsException: Range [48, 49) out of bounds for length 47
RESET ROLE;
 ALTER s6OWNER regress_test_indirect
\+

 SERVER RENAME  java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
\des+
ALTER USER  

-- DROP SERVER
DROP java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 11
SETROLE;
\
 java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 27
DROP SERVER s2;                                             -- ERROR
DROP\java.lang.StringIndexOutOfBoundsException: Range [4, 5) out of bounds for length 4
RESET SET ROLE r
\des
ALTER SERVER s2 OWNER TO regress_test_role;
SET-- ALTER USER \ALTER USERFORjava.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 47
DROPSERVERs2;
DROPSERVER CASCADEjava.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
\
CREATECREATE  FOR java.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 68
\deu
DROPRESET ROLE   user ;                     java.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 78

\CREADROP USERMAPPINGFOR user ;
\eu

-- CREATE USER MAPPING
CREATEUSERFOR regress_test_missing_role s4;
CREATE USER IF FORSERVERss4java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 48
CREATE USER MAPPING CREATECREATE USER FOR SERVERs5java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
CREATE USERMAPPING FORCREATE USER MAPPING FOR current_user SERVER s7;             -- ERROR
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
SET  java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
CREATE FOREIGNTABLE  )                                    
ALTER s5java.lang.StringIndexOutOfBoundsException: Range [0, 21) out of bounds for length 11
ALTER   OPTIONS(param 1") 
SETROLE;
 java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 72
      OPTIONS (sername'est;
CREATE USER MAPPING FOR current_user SERVER s7;             -- ERROR-java.lang.StringIndexOutOfBoundsException: Index 77 out of bounds for length 77
CREATE USER MAPPING FOR  MAPPING  java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 26


ALTER t1 OWNER TO regress_test_indirect
ET  regress_test_role
DROP  ref_tablejava.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
CREATE ALTER  MAPPING  java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 76
RESET ROLE;ALTER   FOR publicSERVEROPTIONS (  textOPTIONS (param2 '' '')
\u

-- ALTER USER MAPPING
ALTER   \u
ALTER USER c1 integer OPTIONS 1
FOR SERVERjava.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 84
ALTER    USER    ss4;
 USERFOR) SERVER s0 OPTIONS (delimiter ', bquoted''
 ;
 USER  SERVERs5OPTIONS  modified  .  '
ALTER 
   FORpublic   ADD '
RESET ROLEjava.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
\deu+

-- DROP USER MAPPING
DROP USER MAPPING FOR 
USERMAPPING  user SET java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
DROP SERVER s7;                     
 
java.lang.StringIndexOutOfBoundsException: Range [17, 4) out of bounds for length 48
USERMAPPING      CREATE FOREIGN TABLE ft1 ();                    
   public SERVER;
SET ROLE regress_test_role;
MAPPING FORjava.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 68
 java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
  ;
CREATE

-- CREATE FOREIGN TABLE
  PART lt1 FROM() 000 s0
CREATE SERVERN TABLE ft_part2  ref_table(dPRIMARY KEY;
CREATE DROPFOREIGN (aram1 a ref_table (id),
CREATEjava.lang.StringIndexOutOfBoundsException: Range [6, 3) out of bounds for length 48
CREATE java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 8
c1integerTABLElt1 a)
 c2  
 c3 date
s0('' quote"' quoted"')REATE ft1(
CREATE TABLE ref_table (id integer PRIMARY KEY integerOPTIONS FOREIGN (INT  )java.lang.StringIndexOutOfBoundsException: Range [56, 53) out of bounds for length 57
 TABLEft1java.lang.StringIndexOutOfBoundsException: Range [25, 12) out of bounds for length 12
 c1CREATE CREATE FOREIGN TABLE ft1 (
 c2  CREATEINDEX  a
  c3 date
 s0 PARTITION BY RANGE (a);
DROP CREATE FOREIGN TABLE ) SERVER s0 OPTIONS (delimiter ' , OFVALUES 0  100) SERVER;
FOREIGN TABLE ft1(
 c1 integer OPTIONS ("ALTER TABLE  ATTACH PARTITIONft_part_1_2COMMENT   COLUMNft1.1IS'.'
 c2 text OPTIONS (param2 \et+
 c3 datejava.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
 java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
) SERVER s0 CREATEUNIQUE ON a;
FOREIGN ft1(
 c1 integer OPTIONS ("param 1" 'val1' TABLE java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
 c2 textCREAT    () -- ERROR
 c3 date,
 ALTER   DROP java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
) SERVER s0 OPTIONS (delimiter ',-- ALTER FOREIGN TABLE
 't1java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
1ISt1;
\d+ ft1CREATE  COMMENT ft1  'column'
\
   ON  java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 59
 ft1                                              
java.lang.StringIndexOutOfBoundsException: Range [14, 7) out of bounds for length 72

CREATE java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 31
 
  PARTITION OF lt1 FORft1 c8java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
CREATE  ADD   PARTITION OF lt1 FOR VALUES FROM (0)java.lang.StringIndexOutOfBoundsException: Range [58, 55) out of bounds for length 72
CREATE UNIQUE  lt1ATTACH java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 0
ADDPRIMARYKEY)                            
DROP TABLE lt1;

CREATE TABLE lt1 (a INT) PARTITION  TABLEALTER   ;
TABLEft1ALTER   NULL;
CREATE FOREIGN TABLE ft_part1 TABLE c8 char)'-- ERROR
  PARTITION OF lt1ALTER  java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 59
 ft_part2 )java.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 48
 lt1PARTITIONft_part2FORFROM 1000  2000;
DROP FOREIGN TABLE ft_part1                         java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 25
CREATE     lt1_part1  FROM(  100)SERVER java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
lt1    (CREATE FOREIGN TABLE ft_part_1_2 (java.lang.StringIndexOutOfBoundsException: Range [48, 47) out of bounds for length 51
FOREIGN  TABLE ft_part1
  PARTITION OF lt1 FORjava.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 58
CREATE FOREIGNALTER  ADD  KEY )
ATTACH ft_part2
  FORd ft1
 TABLElt1
DROP  ft_part2

ALTERFOREIGN  ft1java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
CREATE INDEXCREATE  ft1 PRIMARYKEY c)                   
java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 22
  PARTITIONDROPTABLE ;
  BY ()
FOREIGN
  PARTITION OF java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 51
ALTER FOREIGNOWNER  ;
CREATE INDEXON()java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
EYa;
DROP java.lang.StringIndexOutOfBoundsException: Range [37, 12) out of bounds for length 56
INDEX(
   java.lang.StringIndexOutOfBoundsException: Range [33, 27) out of bounds for length 36
 FOREIGN 
   FOREIGN IF ADD integer
CREATE ALTER IFdoesnt_exist_ft1 c6 NOT;    ALTER  OPTIONSADD'1); -- ERRORALTER FOREIGN  ft1ALTER COLUMNc7  A p1',
 TABLElt1_part1ATTACH PARTITION ALTER FOREIGN TABLE IF EXISTS doesnt_exist_ft1 ALTER ()java.lang.StringIndexOutOfBoundsException: Index 77 out of bounds for length 77
 TABLE lt1;
  ;

-- ALTER FOREIGN TABLE
COMMENT ON FOREIGN java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 48
COMMENT ALTER FORE     ALTERc8  SET '2  p1)java.lang.StringIndexOutOfBoundsException: Index 94 out of bounds for length 94
'';
COMMENT ON COLUMN ft1.c1 IS NULLjava.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 76

ALTER FOREIGN TABLE ft1   ( ,   ~,ADD java.lang.StringIndexOutOfBoundsException: Range [99, 97) out of bounds for length 103
TABLE ft1  COLUMNc5   0
ALTER FOREIGN ALTER FOREIGN TABLEjava.lang.StringIndexOutOfBoundsException: Range [29, 29) out of bounds for length 7
ALTER TABLE ft1 COLUMN NOTFOREIGNTABLE   DROP;
java.lang.StringIndexOutOfBoundsException: Range [34, 5) out of bounds for length 55
ALTER FOREIGN TABLE ft1 DROP  use_ft1_column_type

ALTER FOREIGN FOREIGNTABLEEXISTS check (9  0 NOT;
ALTER FOREIGNTABLE ADD ;

SELECT   .  java.lang.StringIndexOutOfBoundsException: Range [68, 59) out of bounds for length 59
ALTER FOREIGN TABLE ft1 ALTER COLUMN c5 DROPSELECT  ALTER FOREIGN TABLE ft1 DROP COLUMN                   
ALTER FOREIGNALTER SELECT * FROMser_mapping_options  BY lowerauthorization_identifier),2  4;
ALTER FOREIGN TABLEALTER FOREIGN  ft1 ADD  c11serial;
LTER   ALTER  c8TYPE(10) '0'; -- ERROR
 FOREIGN ft1 ALTER  TYPEchar10)
 TABLESELECT.java.lang.StringIndexOutOfBoundsException: Range [55, 54) out of bounds for length 75
ALTER FOREIGN TABLE ft1 ALTER java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 27
ALTER FOREIGN TABLE ft1 ALTER COLUMN c7 OPTIONS (ALTER  foreign_schema.java.lang.StringIndexOutOfBoundsException: Range [42, 41) out of bounds for length 72
                        ALTERc8 (DDv1'ADD '2;
 TABLEft1 COLUMNOPTIONSSET p2'',p1java.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 71
  java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
ALTER\.foreign_table_1   FORcurrent_user SERVERt1
 FOREIGN ALTER c8SET STATISTICS-java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58
1 ALTERCOLUMN  STORAGE PLAIN;
\d+ ft1
-- can't change the column type if it's used elsewhere
SELECThas_foreign_data_wrapper_privilegeregress_test_role,
ALTER FOREIGN TABLE ft1 ALTER COLUMN c8    (ELECT  IF   COLUMN integerjava.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 69
 TABLE use_ft1_column_type
ALTERALTER  IF doesnt_exist_ft1 integerjava.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63
 (c9 < 0)NOT;
ALTER FOREIGN TABLE ft1 ALTER CONSTRAINT WHERE=A FOREIGN TABLE  doesnt_exist_ft1COLUMNc7  java.lang.StringIndexOutOfBoundsException: Range [77, 76) out of bounds for length 77
ALTER FOREIGN TABLE ft1    SELECToid   =) foo '  TABLE  doesnt_exist_ft1  OPTIONS (p1 v1'                       c8  ( ''p22)
GRANTUSAGEONFOREIGNDATA foo  
 FOREIGN    EXISTS ;
ALTER FOREIGN TABLEALTER java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 0
ALTER FOREIGN TABLE ft1 OPTIONS     S   R  IFEXISTSOPTIONS (DROP,SETquote''ADDescape@;
ALTER FOREIGNALTERTABLE java.lang.StringIndexOutOfBoundsException: Range [22, 6) out of bounds for length 28
ALTER FOREIGN TABLE ft1 DROP COLUMN IF EXISTS no_column;
ALTER FOREIGN TABLE     java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 77
 TABLE  DROP;
ALTER FOREIGN TABLE ft1 java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 0
ALTERFOREIGN  ft1   foreign_schemajava.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
 FOREIGNft1 SET TABLESPACE;                     java.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 72
_. SCHEMApublic   -- ERROR
OREIGNTABLE foreign_schemaSELECT * foreign_server_options BY1,2 ;
ma.   foreign_table_1
\d foreign_schema.foreign_table_1

-- alter noexisting table
   EXISTS doesnt_exist_ft1 COLUMNSELECT* information_schema'6,''   ,,3 ,5java.lang.StringIndexOutOfBoundsException: Index 140 out of bounds for length 140
 DROP USER MAP    s4;
ALTER FOREIGN TABLE IF EXISTS doesnt_exist_ft1 ADD COLUMN IF*FROMinformation_schema ,DROP)
 NOTNOT java.lang.StringIndexOutOfBoundsException: Range [78, 77) out of bounds for length 78
ALTER FOREIGN TABLE SET ROLE regress_unpri
ALTER FOREIGN IFEXISTS doesnt_exist_ft1 ADD COLUMNinteger
TIONS(p1 v1java.lang.StringIndexOutOfBoundsException: Index 88 out of bounds for length 88
TABLEIF ADD integerjava.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63

java.lang.StringIndexOutOfBoundsException: Range [19, 5) out of bounds for length 76
ALTER FOREIGN TABLE DATA;-- 
ALTER FOREIGN ALTER SERVERs4'5;-- ERROR
ALTER ALTER SERVER s4 TO;             
 FOREIGN EXISTS  COLUMN c7  ADD ''ADD  'v2'java.lang.StringIndexOutOfBoundsException: Index 98 out of bounds for length 98
ALTER    ( p1 v1,  p2 'v2')java.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 75
ALTER FOREIGN TABLE IF EXISTS doesnt_exist_ft1 SELECT ('DROP  MAPPING  regress_test_role SERVERs6              

ALTER FOREIGN TABLE IF EXISTS    SELECToidFROM WHEREfdwname'foo','';
FOREIGN    doesnt_exist_ft1  ft1_c1_check
ALTER FOREIGN TABLE IF EXISTS doesnt_exist_ft1 OWNER TO regress_test_roleSET SELECT has_foreign_data_wrapper_pri
   EXISTS OPTIONS( delimiter  quote' ADD escape '';
 EXISTSdoesnt_exist_ft1 DROP COLUMN no_column;
 FOREIGN GRANT  FOREIGN WRAPPER  ;
ALTER FOREIGN TABLESELECT DROP FOREIGN DATA WRAPPER;                                 
java.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 56
 TABLE  doesnt_exist_ft1SET SCHEMA ;
ALTER FOREIGN TABLE IF EXISTS doesnt_exist_ft1 RENAME c1 TO foreign_column_1;
ALTER FOREIGN TABLE IF EXISTS ALTER SERVER s6 VERSION '0.5';      has_server_privilege

-- Information schema

java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 69
SELECT  GRANT USAGEON SERVER   regress_test_rolejava.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
SELECT *FROMCREATE USER MAPPING FOR publics9java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
SELECT  information_schema. ORDER 1,2 3;
   DROP USER MAPPING FOR regress_test_role s6               ERROR
SELECT * FROM information_schema
nformation_schema.usage_privileges object_type '% AND object_name IN '''' ORDER java.lang.StringIndexOutOfBoundsException: Index 123 out of bounds for length 80
SELECT E  -- ERROR
mafBY MAPPINGjava.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 39
USERFORSERVERs6  (usernamejava.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 75
ROLE regress_test_role
SELECT *
SELECT * FROMSET regress_unprivileged_role
    information_schemarole_usage_grantsWHEREobject_typeLIKE'%'  IN (s6, foo  BY 1 2  ,5java.lang.StringIndexOutOfBoundsException: Index 141 out of bounds for length 141
DROP USER MAPPING FOR current_user SERVER t1;
 regress_test_role2;
SELECT * FROM information_schema.user_mapping_options ORDER BY 1, 2, 3, 4;
RESET ROLE;


-- has_foreign_data_wrapper_privilege
SELECT has_foreign_data_wrapper_privilege('USER   SERVER s9;
    (SELECT oid ALTER  java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 72
SELECTjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
SELECThas_foreign_data_wrapper_privilege ROLE regress_test_role
    (SELECT oid FROM pg_roles DROP s4;                                                
    (SELECT oid FROM pg_foreign_data_wrapper WHERE fdwname='fooC USERMAPPING regress_unprivileged_role s10 OPTIONS u secret';
SELECT has_foreign_data_wrapper_privilege(
    (
SELECT java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 38
SELECT  FROM-- unprivileged user cannot see any option field
SELECT has_foreign_data_wrapper_privilege(foo',GRANT ON    foo regress_unprivileged_roleWITH OPTION;
SET R regress_unprivileged_role;
 has_foreign_data_wrapper_privilege\eu+
RESET ROLE;
-- has_server_privilege

    (
 Triggers
 GRANT USAGEON FOREIGN    ON DATA java.lang.StringIndexOutOfBoundsException: Range [61, 60) out of bounds for length 61
    (SELECT  -- ERROR
    (SELECT oid   java.lang.StringIndexOutOfBoundsException: Range [5, 6) out of bounds for length 5
SELECT GRANT USAGE ON FOREIGN SERVER s9 java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
    (SELECT oid FROM pg_foreign_server WHERECREATEforeign_table_1
(
    java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
SELECT  USAGEON foreign_table_1
   FOREIGNSERVER s8;

CREATE  AFTERSET  ;

GRANT USAGE ON FOREIGN java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 34
DROP USERALTER   VERSION'FOR   
 SERVER  (  DROP)
ALTER USER MAPPING FOR ALTER USER MAPPING FOR regress_test_role
  WRAPPERVALIDATOR;

-- Privileges
SET ROLE regress_unprivileged_role;
 DATA ;- 
ALTER FOREIGN DATA WRAPPEREACH ROLE;
 DATAfoo TO;
DROP FOREIGN DATAWRAPPER foo;                                 -- ERROR
GRANT USAGE ON FOREIGN DATA WRAPPERON  ROLE regress_unprivileged_rol
 SERVER s9   WRAPPER foo                      
ALTER EXECUTE (;
ALTERjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
DROP SERVER s4;                                                  foreign_schemaforeign_table_1
GRANT USAGE ON FOREIGNALTEReck  of  data
CREATE CREATE SERVER  DATA  foo;
 USER Eforeign_schemaforeign_table_1
DROP USER MAPPING ENABLECREATE USER MAPPING FOR regress_unprivileged_role SERVER s10 OPTIONS (user 'secret');
RESET ROLE;

- seeall option fields
GRANTSET  regress_unprivileged_role;
SET ROLE DROP TRIGGER trigtest_after_stmtRESETROLE;
IGN WRAPPER foobar                             
ALTER FOREIGN DATA WRAPPERCREATE FUNCTION( RETURNS AS$
 FOREIGN   foo;
GRANT USAGE ON FOREIGN DATA WRAPPER postgresql TO regress_test_role; $$ language plpgsql;
GRANT USAGE ON FOREIGN DATAc3ON .
CREATE SERVER s9 FOREIGN DATAEXECUTECREATE  ft2  (d_pt1java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
                          -- ERROR
DROP  foreign_schema
GRANT USAGE EACH
GRANT USAGE
CREATE MAPPINGforeign_schema
 USERMAPPING  public  ;
ALTER USER java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 9
DROP USER)INHERITS(t2java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
ESETROLE;

REVOKE USAGEd
REVOKE
SET-  attributesrecursively
GRANT FOREIGN java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
CREATE SERVER s10 FOREIGNALTER TABLE fd_pt1 COLUMN  DEFAULT0;
';
GRANT USAGE DISABLETRIGGER ;
CREATE   current_userCREATE USER MAPPING FOR current_user SERVER
DROP SERVER s9 CASCADE;
RESET ROLE;
 SERVERs9  DATAWRAPPERfoo;
GRANT USAGE ON java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 7
SET ROLE regress_unprivileged_rolejava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  s9  12'-- ERROR
GRANT USAGEDROP trigtest_after_rowALTER TABLE fd_pt1 ALTER COLUMN c5java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
REATE  MAPPINGFORNOTNULL
 SERVER CASCADEjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

-- Check visibility of user mapping data
SET ROLE regress_test_role;
CREATE SERVER s10 FOREIGN DATA WRAPPER fd_pt1ALTERjava.lang.StringIndexOutOfBoundsException: Range [34, 31) out of bounds for length 56
 MAPPING()INHERITS)
CREATE USER MAPPING FOR TABLE   SERVER s0 OPTIONS (delimiter'," "'';
-- owner of server can see some option fields
\+
RESET ROLE;
-- superuser can see all option fields
+
-- unprivileged user cannot see any option field
SET ROLE regress_unprivileged_role;
\deu+
RESETROLE;
 SERVERs10 ;

-- Triggers
ALTERGNTABLEft2fd_pt1;
  BEGIN
   RETURN;
  END
$$ java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10

CREATECREATEFOREIGNd ft2
ON 
FOR-- add c recursively
  dummy_trigger(;

 trigtest_after_stmtAFTERINSERT UPDATEORDELETE
ON relname,conname ,, coninhcount 
FOREACHSTATEMENT
EXECUTE  WHERE. = 'java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29

CREATE TRIGGER trigtest_after_stmt_tt\+ft3
ON java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
REFERENCING TABLE  new_table
FOR EACH STATEMENT
 dummy_trigger(;

java.lang.StringIndexOutOfBoundsException: Range [14, 6) out of bounds for length 68
ON foreign_schema TABLEft2 (
FOR EACH 
EXECUTEPROCEDURE dummy_trigger();

CREATE TRIGGER trigtest_after_row AFTER INSERT OR UPDATE OR DELETE
 foreign_schema.oreign_table_1

EXECUTE PROCEDURE-- child must have parent's INHERIT constraints

CREATE CONSTRAINT TRIGGERTABLE   fd_pt1chk2 CHECK ( <>')
ON foreign_schema.+ ft2ALTERCOLUMN DROPNOTNULL
 ROW
EXECUTE 

ALTER FOREIGN TABLE foreign_schema.foreign_table_1
DISABLE java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 38
ALTER FOREIGN TABLE CONSTRAINT CASCADE;
 -- NOT VALID case

 TRIGGERjava.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 68
DROP ALTER TABLEjava.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 72
 TRIGGERtrigtest_after_stmt .java.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 67
   ONforeign_table_1;

  dummy_trigger)

-- Table inheritance
CREATE fd_pt1VALIDATEjava.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 50
 c1 integer+ft2
 c2 -- drop attributes recursively
 c3 date
java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 2
 () INHERITS (ALTER RENAME c2 ;
  SERVER s0 OPTIONS (delimiter TABLEfd_pt1 DROPCOLUMN ALTERTABLEfd_pt1 RENAME  f3
\d+ fd_pt1
\+fd_pt1
DROP java.lang.StringIndexOutOfBoundsException: Range [0, 12) out of bounds for length 7

CREATE FOREIGN TABLE ft2 (-- add constraints recursively
c1integerNOTNULL
 c2 text,
 c3 
 SERVER s0  ,,- connoinherit should be true for NO INHERIT
\d+ ft2
 ;
\d+ fd_pt1
\d+ ft2
 TABLEass  JOINpg_constraint  ON = pc.oid)
 FOREIGN TABLE ft3 (OPTIONS (ption1 value1,option2 value2;-
 c1 integer NOT NULL,
 c2text,
 c3 date
)INHERITSft2))
  SERVER s0;
\d+ ft2

\d+ ft3

-- add attributes recursively
ALTER TABLE fd_pt1c3 date
ALTER TABLE fd_pt1 ADD COLUMN c5 integer DEFAULT 0quoted value;
java.lang.StringIndexOutOfBoundsException: Range [18, 5) out of bounds for length 41
ALTER TABLE fd_pt1 ADD CHECK(2< ';
ALTERTABLE ALTERTABLE ft2 INHERIT;
\d+ fd_pt1

\d+ ct3
\d+ ft3

-- alter attributes recursively
ALTER  ALTER
ALTER TABLE fd_pt1 ALTER COLUMNALTER fd_pt1 DROPCONSTRAINTfd_pt1chk1 
 TABLE fd_pt1 ALTER  c3 date
ALTER  ALTER  
ALTER TABLE fd_pt1 ALTER COLUMN c8 CREATE FOREIGN TABLE fd_pt2_1 PARTITION VALUES:99401-':java.lang.StringIndexOutOfBoundsException: Range [65, 64) out of bounds for length 66
ALTER TABLE fd_pt1 ALTER COLUMN c8DROPFOREIGNTABLEVALIDATECONSTRAINTfd_pt1chk3
ALTER-- changes name of-c2 ,
c3datejava.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
java.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 58
ALTER TABLE fd_pt1 ALTER COLUMN \+ fd_pt2_1
 fd_pt1  COLUMNSET EXTERNALjava.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
\d+ fd_pt1
\ ft2

-- drop attributes recursively
ALTER  fd_pt1CREATEFOREIGNTABLE  java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 31
ALTER TABLE fd_pt1java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [18, 5) out of bounds for length 34
ALTER -- IMPORT FOREIGN SCHEMA
ALTER TABLE fd_pt1 DROP c8;8java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
\+fd_pt1
\d+ ft2

-- add constraints recursively
ONSTRAINTfd_pt1chk1
ALTER TABLE fd_pt1 ADD CONSTRAINTALTER    char;
-- connoinherit should be true for NO INHERIT constraint
SELECT relname, conname, -- ok to have a partition's own constraints though
  FROM pg_class AS pc DROPFOREIGNTABLEno_tableNSTRAINT   c2<';
  WHERE pc.relname = 'fd_pt1'\+fd_pt2
  ORDER BY 1,2;
-- child does not inherit NO INHERIT constraints
\ 
\d+ ft2
DROP FOREIGN TABLE ft2; -- ERROR
DROPFOREIGN   roleTO;
CREATE FOREIGN TABLE ft2 (
 c1 integer NOT NULL,
 c2 text,
 c3 date
   TABLE fd_pt2
-- child must have parent's INHERIT constraints
java.lang.StringIndexOutOfBoundsException: Range [8, 3) out of bounds for length 9
FOREIGNADDCONSTRAINTfd_pt1chk2CHECKc )
ALTER ALTER TABLE f ADDCONSTRAINT fd_pt2chk1CHECK (c1 > 0);
-- child does not inherit NO INHERIT constraints
\d+ fd_pt1
\d+ ft2

-- drop constraints recursively
fd_pt1    ;
ALTER TABLE fd_pt1 DROP CONSTRAINT fd_pt1chk2 CASCADE;

-- NOT VALID case
INSERT INTO fd_pt1 VALUES  text
ALTER TABLE fd_pt1
d+
\d+ ft2
-- VALIDATE CONSTRAINT need do nothing on foreign tables
;
\d+ fd_pt1
\d+ ft2

-- changes name of an attribute recursively
ALTER  fd_pt1RENAME 
 java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 42
ALTER FOREIGN c2java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
-- changes name of a constraint recursively
ALTERTABLEjava.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 12
\+ fd_pt1
\+java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7

DROP TABLE java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

-- IMPORT FOREIGN SCHEMA
IMPORTFOREIGN  s1FROM SERVER INTO ;-- ERROR
 LIMITTOt1FROM   INTOpublic; --ERROR
 FOREIGN   EXCEPT() SERVER  INTOpublic;-ERROR
IMPORT FOREIGN SCHEMA s1 EXCEPT DROP\ fd_pt2
OPTIONS (DROP FOREIGN DATA 

-- DROP FOREIGN TABLE
 FOREIGN ROLE regress_test_indirect
DROP FOREIGN TABLE IF DROP ROLE regress_test_role
java.lang.StringIndexOutOfBoundsException: Range [49, 4) out of bounds for length 50

-- REASSIGN OWNED/DROP OWNED of foreign objects
REASSIGN OWNED BY regress_test_role
java.lang.StringIndexOutOfBoundsException: Range [32, 4) out of bounds for length 33
DROP OWNED BY regress_test_role2-- At this point we should have no wrappers, no servers, and no mappings.

-- Foreign partition DDL stuff

c1 integerNOTNULLjava.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
 c2 text,
 c3 date
)PARTITION 
CREATE FOREIGN TABLEALTER TABLEfd_pt2_1ADD  fd_pt2chk1CHECK   0);
  SERVER s0 OPTIONS (delimiter ',', quote '"', "be quoted" 'value');
\+fd_pt2
\d+ fd_pt2_1

-- partition cannot have additional columns
DROP FOREIGN TABLE fd_pt2_1;
CREATE FOREIGN TABLE fd_pt2_1 (
 c1 integer NOT NULL,
 c2text,
 c3 date,
 c4 char
)SERVERs0 OPTIONS (delimiter ',', quote'," quoted"'value;
\d+ fd_pt2_1
ALTER TABLE fd_pt2 ATTACH PARTITION fd_pt2_1 FOR    ;-- ERROR

DROP FOREIGN TABLE fd_pt2_1;
\d+ fd_pt2
 TABLE fd_pt2_1(
 c1 integer NOT NULL,
 ,
 c3 date
) SERVER s0SCHEMAforeign_schemajava.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
\d+ fd_pt2_1
-- no attach partition validation occurs for foreign tables
LE  PARTITIONFOR IN(;
DROPFOREIGN DATA WRAPPERfooCASCADEjava.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
\+ fd_pt2_1

-- cannot add column to a partition
ALTERTABLEfd_pt2_1 ADD char

-- ok to have a partition's own constraints though
ALTERTABLE fd_pt2_1 ALTER c3 SET NOT NULLjava.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
ALTER TABLE fd_pt2_1 ADD DROP DATA  CASCADE
dfd_pt2
\d+java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

-- cannot drop inherited NOT NULL constraint from a partition
ALTER TABLE fd_pt2_1 ALTER c1 DROP NOT NULL;

-- partition must have parent's constraints
ALTER TABLE fd_pt2 DETACH PARTITION fd_pt2_1;
ALTER TABLE fd_pt2 ALTER c2 SET NOT NULL;
\d+ fd_pt2
\d+ fd_pt2_1
ALTER TABLE fd_pt2 ATTACH PARTITION fd_pt2_1 FOR VALUES IN (1);       -- ERROR
ALTER FOREIGN TABLE fd_pt2_1 ALTER c2 SET NOT NULL;
ALTER TABLE fd_pt2 ATTACH PARTITION fd_pt2_1 FOR VALUES IN (1);

ALTER TABLE fd_pt2 DETACH PARTITION fd_pt2_1;
ALTER TABLE fd_pt2 ADD CONSTRAINT fd_pt2chk1 CHECK (c1 > 0);
\d+ fd_pt2
\d+ fd_pt2_1
ALTER TABLE fd_pt2 ATTACH PARTITION fd_pt2_1 FOR VALUES IN (1);       -- ERROR
ALTER FOREIGN TABLE fd_pt2_1 ADD CONSTRAINT fd_pt2chk1 CHECK (c1 > 0);
ALTER TABLE fd_pt2 ATTACH PARTITION fd_pt2_1 FOR VALUES IN (1);

DROP FOREIGN TABLE fd_pt2_1;
DROP TABLE fd_pt2;

-- foreign table cannot be part of partition tree made of temporary
-- relations.
CREATE TEMP TABLE temp_parted (a int) PARTITION BY LIST (a);
CREATE FOREIGN TABLE foreign_part PARTITION OF temp_parted DEFAULT
  SERVER s0;  -- ERROR
CREATE FOREIGN TABLE foreign_part (a int) SERVER s0;
ALTER TABLE temp_parted ATTACH PARTITION foreign_part DEFAULT;  -- ERROR
DROP FOREIGN TABLE foreign_part;
DROP TABLE temp_parted;

-- Cleanup
DROP SCHEMA foreign_schema CASCADE;
DROP ROLE regress_test_role;                                -- ERROR
DROP SERVER t1 CASCADE;
DROP USER MAPPING FOR regress_test_role SERVER s6;
DROP FOREIGN DATA WRAPPER foo CASCADE;
DROP SERVER s8 CASCADE;
DROP ROLE regress_test_indirect;
DROP ROLE regress_test_role;
DROP ROLE regress_unprivileged_role;                        -- ERROR
REVOKE ALL ON FOREIGN DATA WRAPPER postgresql FROM regress_unprivileged_role;
DROP ROLE regress_unprivileged_role;
DROP ROLE regress_test_role2;
DROP FOREIGN DATA WRAPPER postgresql CASCADE;
DROP FOREIGN DATA WRAPPER dummy CASCADE;
\c
DROP ROLE regress_foreign_data_user;

-- At this point we should have no wrappers, no servers, and no mappings.
SELECT fdwname, fdwhandler, fdwvalidator, fdwoptions FROM pg_foreign_data_wrapper;
SELECT srvname, srvoptions FROM pg_foreign_server;
SELECT * FROM pg_user_mapping;

Messung V0.5 in Prozent
C=94 H=91 G=92

¤ Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.0.16Bemerkung:  ¤

*Bot Zugriff






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1127926
#Domains=2039723