Help Center/ GaussDB(DWS)/ More Documents/ User Guide (Paris Region)/ FAQs/ Database Usage/ How Do I View Foreign Table Information?
Updated on 2024-06-11 GMT+08:00

How Do I View Foreign Table Information?

To query information about OBS/GDS foreign tables such as OBS paths, run the following statement:

1
SELECT * FROM pg_get_tabledef ('foreign_table_name')

The following uses table traffic_data.GCJL_OBS as an example:

1
SELECT * FROM pg_get_tabledef('traffic_data.GCJL_OBS');