All Apps and Add-ons

How to retrieve list of foreign tables in splunk db connect?

vanheer
Explorer

Hi,

I'm trying to query tables from postgres database. All tables there are under Foreign tables and nothing under tables. when I use db connect it get the schema name but it couldn't get the list of tables.

How can I access the foreign tables using db connect?

Labels (2)
0 Karma
1 Solution

VatsalJagani
SplunkTrust
SplunkTrust

Try running the below query in the DB connect:

 

select * from information_schema.foreign_tables

OR 

select * from information_schema.tables

 

View solution in original post

0 Karma

VatsalJagani
SplunkTrust
SplunkTrust

Try running the below query in the DB connect:

 

select * from information_schema.foreign_tables

OR 

select * from information_schema.tables

 

0 Karma

vanheer
Explorer

Thanks @VatsalJagani it works fine.

Actually it was a stupid question, but it was going on the opposite direction all the time and couldn't think good 🙂

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...