POSTGRES DB SCRIPTS

Please write in comment section, if links are not working.

DATABASE MANAGEMENT




























OBJECT MANAGEMENT















MAINTENANCE











USER MANAGEMENT















TABLESPACE MANAGEMENT






BACKUP & RECOVERY

 

AUDITING & SECURITY


NETWORK





 

REPLICATION






PERFORMANCE

 

GENERIC

GENERIC

    1. This page will be updated regularly with new scripts.Please provide suggestions to improve this page.

Keep visiting us.

29 thoughts on “POSTGRES DB SCRIPTS”

  1. Unchanged. Mozilla Firefox without blocking scripts and clean Microsoft Edge – when you click on the link, nothing happens. P.S. JavaScript on a page like this is very bad.

    1. Yes issue is due to jquery It is breaking the js scripts. Thank. you for pointing out.We are working on it.

      Admin

  2. Hello Team,

    Thanks for sharing very good scripts ..

    But one thing ..

    Is there anyway to get all DB objects like triggers, types, sequences etc.. in single command ? If yes please provide here .
    I see list of objects presents in a schema in this Web page …But not for list of objects presents in a Databases .

    Please add this script too.

    1. — List down table level privileges of user
      SELECT table_catalog, table_schema, table_name, privilege_type
      FROM information_schema.table_privileges
      WHERE grantee = ‘USER_NAME’;

      — List down usage privileges of a user:

      select * from usage_privileges where grantee=’USER_NAME’;

      1. Thanks, Its showing only your current db. suppose in my cluster I have more than 100+ db
        Please give me me query how to get at global level.

  3. Hi

    Thanks for this notes. I am beginner to Postgres could you please share me installation and configuration of Postgres on Linux pls .

  4. Thank you for sharing so many great scripts. but could you also please provide a script that can read errors from the log file and then send the error messages to an email address for notifications?
    Thanks so much!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.