문제

Is it possible to get the names or (Oid's) for all queried tables with libpq? If there exists a generic standard SQL way i would prefer it.

도움이 되었습니까?

해결책

It's not standard, but the Postgres EXPLAIN command can give you (more than) what you want.

http://www.postgresql.org/docs/9.3/static/sql-explain.html

If you use the JSON output format, the table names are found in the "Relation Name" attributes of the "Plan" objects.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top