Last active
October 18, 2025 13:17
-
-
Save detj/243a58e5113a63ad6a4cdd9d380821db to your computer and use it in GitHub Desktop.
Revisions
-
detj revised this gist
Oct 18, 2025 . 1 changed file with 3 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,5 @@ # List tables when using a custom schema other than 'public' in postgres # 'BASE TABLE' table_type filter ensures only tables are listed and not views # # Replace <schema-name> with your schema name select table_name from information_schema.tables where table_schema = '<schema-name>' and table_type = 'BASE TABLE'; -
detj created this gist
Oct 18, 2025 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,3 @@ # List tables when using a custom schema other than 'public' in postgres # 'BASE TABLE' table_type filter ensures only tables are listed and not views select table_name from information_schema.tables where table_name = '<name>' and table_type = 'BASE TABLE';