I have a database with many tables that are used as a reference for valid values in the other tables. These reference tables are all named valid[table]
, so I can display them in psql with \dt valid*
.
I'd like to be able to select all the non-reference tables (which are more variably named, but none of them start with valid
), but can't figure out how. I've tried various things like \dt !valid*
, \dt !~valid*
, \dt NOT LIKE 'valid%'
, but these either error or don't find a match.
Any suggestions would be appreciated!