off fdw to offsets.txt
authorDobrica Pavlinusic <dpavlin@rot13.org>
Tue, 27 Dec 2022 11:34:45 +0000 (12:34 +0100)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Tue, 27 Dec 2022 11:34:45 +0000 (12:34 +0100)
fdw_file_offset.sql [new file with mode: 0644]

diff --git a/fdw_file_offset.sql b/fdw_file_offset.sql
new file mode 100644 (file)
index 0000000..c9bfca9
--- /dev/null
@@ -0,0 +1,11 @@
+-- CREATE EXTENSION file_fdw;
+
+-- CREATE SERVER sub FOREIGN DATA WRAPPER file_fdw;
+
+CREATE FOREIGN TABLE off (
+       pn bigint,
+       x float,
+       y float
+)
+SERVER sub
+OPTIONS ( filename '/home/dpavlin/zc/gnuplot/offset.txt', format 'csv', delimiter ' ' );