How to search column_names in Vertica?

timssopomo picture timssopomo · Apr 6, 2012 · Viewed 11.3k times · Source

Anyone know of a handy function to search through column_names in Vertica? From the documentation, it seems like \d only queries table_names. I'm looking for something like MySQL's information_schema.columns, but can't find any information about a similar table of meta-data.

Thanks!

Answer

Camilo picture Camilo · Apr 12, 2012

In 5.1 if you have enough permissions you can do

SELECT * FROM v_catalog.columns;

to access columns's info, for some things you'll need to join with

v_catalog.tables