Skip to content

Instantly share code, notes, and snippets.

@vilmid
Created October 4, 2021 05:19
Show Gist options
  • Select an option

  • Save vilmid/acb45759a9b8f801bfdb0831eae805ca to your computer and use it in GitHub Desktop.

Select an option

Save vilmid/acb45759a9b8f801bfdb0831eae805ca to your computer and use it in GitHub Desktop.
SELECT
tablename
, tableowner
FROM
pg_tables
WHERE
tableowner <> 'postgres'
;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment