| From: | roman(at)chmela(dot)sk |
|---|---|
| To: | pgsql-bugs(at)postgresql(dot)org |
| Subject: | BUG #6478: Foreign tables not displayed |
| Date: | 2012-02-20 16:32:27 |
| Message-ID: | E1RzWA7-0007uS-0o@wrigleys.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-bugs |
The following bug has been logged on the website:
Bug reference: 6478
Logged by: Roman Chmela
Email address: roman(at)chmela(dot)sk
PostgreSQL version: 9.1.2
Operating system: 1) Windows 7 pro, 2) Ubuntu
Description:
Hello
I have setup successfully foreign table, fully functional, retrieving data
from external csv file:
create extension file_fdw;
CREATE SERVER file_server FOREIGN DATA WRAPPER file_fdw;
CREATE FOREIGN TABLE my_names (
name text,
surname text
) SERVER file_server
OPTIONS (format 'text', filename 'c:\xxx\my_names.csv', delimiter ';', null
'');
-----------------
Problem:
-----------------
- this table is not listed among tables (using pgadmin)
-------------------
Possible solution?
-------------------
CREATE OR REPLACE VIEW pg_tables AS
SELECT n.nspname AS schemaname, c.relname AS tablename,
pg_get_userbyid(c.relowner) AS tableowner, t.spcname AS tablespace,
c.relhasindex AS hasindexes, c.relhasrules AS hasrules, c.relhastriggers AS
hastriggers
FROM pg_class c
LEFT JOIN pg_namespace n ON n.oid = c.relnamespace
LEFT JOIN pg_tablespace t ON t.oid = c.reltablespace
--WHERE c.relkind = 'r'::"char";
WHERE c.relkind in ('r'::"char",'f'::"char");
=====================
Thank you for response
Regards
Roman Chmela
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Alvaro Herrera | 2012-02-20 17:15:34 | Re: Syntax got translated |
| Previous Message | Christoph Anton Mitterer | 2012-02-20 16:31:01 | Re: BUG #6459: logging_collector=off but log_filename set inhibits logoutpu |