In postgres, is there a system table that stores the mapping between foreign (external) table and its corresponding file on the disk. Similar to location and table_name mapping in user_external_locations table in oracle.
I have used foreign file wrapper - file_fdw to create the external table. I looked at pg_foreign_tables but that does not have the information I seek.
create extension file_fdw;
create server oem_dat_dir foreign data wrapper file_fdw;
CREATE FOREIGN TABLE trial.xtab_vehicle ( vehicle_syskey int8 NULL, vehicle_line_syskey int NULL ) SERVER oem_dat_dir OPTIONS (filename 'c:\dat\vehicle.csv', format 'csv', delimiter '|');
When i read file c:\dat\vehicle.csv, I want to know the external table it corresponds to i.e. trial.xtab_vehicle.