Skip to content

Instantly share code, notes, and snippets.

@nkarpeev
Last active November 7, 2018 11:34
Show Gist options
  • Save nkarpeev/d9a8d80a6b24f463e36bd0c709070505 to your computer and use it in GitHub Desktop.
Save nkarpeev/d9a8d80a6b24f463e36bd0c709070505 to your computer and use it in GitHub Desktop.
psql
//show all tables from db
select * from pg_tables;
//show all tables from but psq tables
select * from pg_catalog.pg_tables
where schemaname != 'information_schema' and schemaname != 'pg_catalog';
psql -U registrator -d registrator
UPDATE regschema_shadow.registrator SET is_local = true WHERE id = id
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment