\pset null '(null)' CREATE SERVER graphdb FOREIGN DATA WRAPPER rdf_fdw OPTIONS ( endpoint 'http://graphdb:7200/repositories/test', update_url 'http://graphdb:7200/repositories/test/statements'); CREATE FOREIGN TABLE ft ( subject rdfnode OPTIONS (variable '?s'), predicate rdfnode OPTIONS (variable '?p'), object rdfnode OPTIONS (variable '?o') ) SERVER graphdb OPTIONS ( sparql 'SELECT * WHERE {?s ?p ?o}', sparql_update_pattern '?s ?p ?o .' ); CREATE USER MAPPING FOR postgres SERVER graphdb OPTIONS (user 'admin', password 'secret'); INSERT INTO ft (subject, predicate, object) VALUES ('', '', '"Westfälische Wilhelms-Universität Münster"@de'), ('', '', '"University of Münster"@en'), ('', '', '"Univerrrsity of Münsterrr"@en-US'), ('', '', '"Univêrsity of Münsta"@en-GB'), ('', '', '"18:18:42"^^'), ('', '', '"1780-04-16"^^'), ('', '', '"2025-12-24T18:30:42"^^'), ('', '', '"2025-12-24T13:00:42Z"^^'), ('', '', '"51.9636"^^'), ('', '', '"7.6136"^^'), ('', '', '"Johannes Wessels"'), ('', '', ''), ('', '', ''), ('', '', '"Hello 👋 PostgreSQL 🐘"@en'), ('', '', '"unknown literal type"^^'), ('', '', '"explicit string literal"^^'), ('', '', '""'), ('', '', '". <= pontos => ."@pt'), ('', '', '"\n <= salto de línea => \n"@es'), ('', '', '"\" <= double-quotes => \""@en'), ('', '', '"\t <= Tabulatorzeichen => \t"@de'), ('', '', '"1924"^^'), ('', '', '"49098"^^'), ('', '', '"4956"^^'), ('', '', '"803600000"^^'), ('', '', '"1500.00"^^'), ('', '', '"9999999999999999999"^^'), ('', '', '"0.000000000000001"^^'), ('', '', '"2024-02-29"^^'), ('', '', '"true"^^'); CALL rdf_fdw_clone_table( foreign_table => 'public.ft', target_table => 'public.t1', fetch_size => 4, verbose => true, create_table => true, commit_page => false ); ERROR: syntax error at or near "CALL" LINE 1: CALL ^ SELECT * FROM public.t1 WHERE subject = '' ORDER BY object::text COLLATE "C"; ERROR: relation "public.t1" does not exist LINE 1: SELECT * FROM public.t1 ^ /* text data type */ CREATE FOREIGN TABLE ft2 ( subject text OPTIONS (variable '?s'), predicate text OPTIONS (variable '?p'), object text OPTIONS (variable '?o') ) SERVER graphdb OPTIONS ( sparql 'SELECT * WHERE {?s ?p ?o}' ); CALL rdf_fdw_clone_table( foreign_table => 'public.ft2', target_table => 'public.t2', fetch_size => 4, verbose => true, create_table => true, commit_page => false ); ERROR: syntax error at or near "CALL" LINE 1: CALL ^ SELECT * FROM public.t2 WHERE subject = 'https://www.uni-muenster.de' ORDER BY object::text COLLATE "C"; ERROR: relation "public.t2" does not exist LINE 1: SELECT * FROM public.t2 ^ /* timestamp data type */ CREATE FOREIGN TABLE ft3 ( subject text OPTIONS (variable '?s'), predicate text OPTIONS (variable '?p'), object timestamp OPTIONS (variable '?o') ) SERVER graphdb OPTIONS ( sparql 'SELECT * WHERE {?s ?p ?o FILTER (?p = || ?p = )}' ); CALL rdf_fdw_clone_table( foreign_table => 'public.ft3', target_table => 'public.t3', fetch_size => 4, verbose => true, create_table => true, commit_page => false ); ERROR: syntax error at or near "CALL" LINE 1: CALL ^ SELECT * FROM public.t3 WHERE subject = 'https://www.uni-muenster.de' ORDER BY object::text COLLATE "C"; ERROR: relation "public.t3" does not exist LINE 1: SELECT * FROM public.t3 ^ /* date data type */ CREATE FOREIGN TABLE ft4 ( subject text OPTIONS (variable '?s'), predicate text OPTIONS (variable '?p'), object date OPTIONS (variable '?o') ) SERVER graphdb OPTIONS ( sparql 'SELECT * WHERE {?s ?p ?o FILTER (?p = || ?p = )}' ); CALL rdf_fdw_clone_table( foreign_table => 'public.ft4', target_table => 'public.t4', fetch_size => 4, verbose => true, create_table => true, commit_page => false ); ERROR: syntax error at or near "CALL" LINE 1: CALL ^ SELECT * FROM public.t4 WHERE subject = 'https://www.uni-muenster.de' ORDER BY object::text COLLATE "C"; ERROR: relation "public.t4" does not exist LINE 1: SELECT * FROM public.t4 ^ /* numeric data type */ CREATE FOREIGN TABLE ft5 ( subject text OPTIONS (variable '?s'), predicate text OPTIONS (variable '?p'), object numeric OPTIONS (variable '?o') ) SERVER graphdb OPTIONS ( sparql 'SELECT * WHERE {?s ?p ?o FILTER (?p = || ?p = )}' ); CALL rdf_fdw_clone_table( foreign_table => 'public.ft5', target_table => 'public.t5', fetch_size => 4, verbose => true, create_table => true, commit_page => false ); ERROR: syntax error at or near "CALL" LINE 1: CALL ^ SELECT * FROM public.t5 WHERE subject = 'https://www.uni-muenster.de' ORDER BY object::text COLLATE "C"; ERROR: relation "public.t5" does not exist LINE 1: SELECT * FROM public.t5 ^ /* int data type */ CREATE FOREIGN TABLE ft6 ( subject text OPTIONS (variable '?s'), predicate text OPTIONS (variable '?p'), object int OPTIONS (variable '?o') ) SERVER graphdb OPTIONS ( sparql 'SELECT * WHERE {?s ?p ?o FILTER (?p = || ?p = )}' ); CALL rdf_fdw_clone_table( foreign_table => 'public.ft6', target_table => 'public.t6', fetch_size => 4, verbose => true, create_table => true, commit_page => false ); ERROR: syntax error at or near "CALL" LINE 1: CALL ^ SELECT * FROM public.t6 WHERE subject = 'https://www.uni-muenster.de' ORDER BY object::text COLLATE "C"; ERROR: relation "public.t6" does not exist LINE 1: SELECT * FROM public.t6 ^ DELETE FROM ft; DROP TABLE public.t1; ERROR: table "t1" does not exist DROP TABLE public.t2; ERROR: table "t2" does not exist DROP TABLE public.t3; ERROR: table "t3" does not exist DROP TABLE public.t4; ERROR: table "t4" does not exist DROP TABLE public.t5; ERROR: table "t5" does not exist DROP TABLE public.t6; ERROR: table "t6" does not exist DROP SERVER graphdb CASCADE; NOTICE: drop cascades to 7 other objects DETAIL: drop cascades to foreign table ft drop cascades to user mapping for postgres on server graphdb drop cascades to foreign table ft2 drop cascades to foreign table ft3 drop cascades to foreign table ft4 drop cascades to foreign table ft5 drop cascades to foreign table ft6