projects
/
zc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
6c4272f
)
add sub table for subvision-numbers.txt
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Thu, 22 Dec 2022 10:50:03 +0000
(11:50 +0100)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Thu, 22 Dec 2022 10:50:03 +0000
(11:50 +0100)
fdw_file.sql
[new file with mode: 0644]
patch
|
blob
diff --git a/fdw_file.sql
b/fdw_file.sql
new file mode 100644
(file)
index 0000000..
92788e8
--- /dev/null
+++ b/
fdw_file.sql
@@ -0,0
+1,12
@@
+CREATE EXTENSION file_fdw;
+
+CREATE SERVER sub FOREIGN DATA WRAPPER file_fdw;
+
+CREATE FOREIGN TABLE sub (
+ sub text,
+ pn bigint,
+ imei text,
+ name text
+)
+SERVER sub
+OPTIONS ( filename '/home/dpavlin/zc/subvision-numbers.txt', format 'csv', delimiter ' ' );