This script will make your life easier to view the total row on all your tables, you need to create a function for it, but its quite easy to maintain
I`m a Software and Data enthusiast, this is my personal scratchpad (I forget a lot), who knows it might be of use ..
Showing posts with label PostgreSQL. Show all posts
Showing posts with label PostgreSQL. Show all posts
Wednesday, July 20, 2016
Sunday, June 12, 2016
Find Active Session and Kill it on PostgreSQL
I happen to encounter a case when I want to drop a database and not allowed by system since there are an active session. I ended up having to restart database and the perform the drop. this is not ideal if there are more than 2 database or its already run on production, but here's how to do it
Restore PostgreSQL Database
Without having to use tools like pgAdmin, you can backup and restore database using console command
Wednesday, June 8, 2016
Backup PostgreSQL Database
Without having to use tools like pgAdmin, you can backup and restore database using console
Labels:
Backup
,
Database
,
DB
,
Postgre
,
PostgreSQL
Subscribe to:
Comments
(
Atom
)