For example in a PostgreSQL database, all the other tables can be seen using
dt
Or with
SELECT * FROM pg_catalog.pg_tables;
And we know that AGE creates its own label tables, vertex table, edge table.
How can I see those tables, and how can I query for them to view them along with their all columns?
2
Answers
Try the above query. It should be able to give you the table and the respective columns. If it doesn’t work you can always check the documentation provided by AGE to see what you’re trying to work on. By my guess you want to retrieve the tables that are created by AGE itself therefore I think this query should be optimal.
You can use the following query:
to get a similar result in AGE, for example:
where the
kind
column tells you if it is a vertexv
or an edgee
, with their labels shown in thename
column.Here is a regress test to check the different variations of the function.