PostgreSQL Candies
  • Home
  • Back to “freeideas.cz”
Select Page

How to compare database objects between two databases – program in python

This could be useful when you need something like this: to compare database objects between two databases to compare database objects between two different time snapshots in one database – for example after fresh installation and after migration from previous...

Tags

aggregate functions alter database ARRAY array functions BSD cloud data file date time dblink DDL deadlock dependencies FOR cycle forein data wrappers IF...ELSE...END IF inheritance installation JSON linux materialized views operation system parser performance pg_bulkload pg_catalog pg_class pg_constraint pg_database pg_depend pg_locks pg_stat_activity pg_stat_bgwriter pg_stat_statements plv8 psql recursive select server configuration system columns system functions tablespace timezone TODO vacuum VALUES command xmin transaction ID

Recent Posts

  • Check published and subscribed tables for PRIMARY KEYs
  • Event triggers in PostgreSQL 11
  • Repair referenced sequences on tables
  • Problems with autovacuum during high load on server
  • How to get information about partitions for new native partitioning in PostgreSQL
  • Check / terminate postgresql processes
  • How to check blocked queries
  • Bash script – dump structures of parent tables one by one and upload them to Google storage
  • Bash script – dump functions one by one and upload them to Google storage
  • Bash script – dump tables one by one and upload dumps to Google storage
  • Transaction ID wraparound error
  • Block some user from connecting into PostgreSQL
  • Setting logical replication is not entirely straight forward…
  • Show source code of trigger function
  • Default “postgres” database – how to re-create it
  • PostgreSQL point in time recovery – experiences
  • Experiences with PostgreSQL Google Cloud SQL
  • Similarity of two strings – experiences
  • Bash script for emergency stop of PostgreSQL
  • Build latest pgloader from sources (Debian 9)
  • Temporary tablespace – small notes
  • Simple plpgsql script to set select only privileges for new user on a database
  • pg_basebackup – bash script for backup and archiving on Google storage
  • pg_basebackup – experiences
  • pg_basebackup / pg-barman – restore tar backup
  • pg-barman – check HW config of a server / instance
  • Streaming replication – increase of max_connections on master can shutdown all your replicas
  • Streaming replication / pg-barman – archiving WAL logs using script
  • Add new disk and tablespace to PostgreSQL master and replica
  • Hanging PostgreSQL session when called from GO lang or node.js program
  • error: duplicate key value violates unique constraint pg_type_typname_nsp_index
  • Dump and restore postgresql users (roles)
  • Bash script – clone PostgreSQL replica
  • Ansible – simple playbook for installing PostgreSQL on Ubuntu/ Debian
  • SQL injection in PostgreSQL
  • PostgreSQL packages for Debian and Ubuntu
  • Useful SQLs to check contents of PostgreSQL9.4 shared_buffer
  • Install PostgreSQL 10 on Ubuntu

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Recent Posts

  • Check published and subscribed tables for PRIMARY KEYs
  • Event triggers in PostgreSQL 11
  • Repair referenced sequences on tables
  • Problems with autovacuum during high load on server
  • How to get information about partitions for new native partitioning in PostgreSQL
  • Check / terminate postgresql processes
  • How to check blocked queries
  • Bash script – dump structures of parent tables one by one and upload them to Google storage
  • Bash script – dump functions one by one and upload them to Google storage
  • Bash script – dump tables one by one and upload dumps to Google storage
  • Transaction ID wraparound error
  • Block some user from connecting into PostgreSQL
  • Setting logical replication is not entirely straight forward…
  • Show source code of trigger function
  • Default “postgres” database – how to re-create it
  • PostgreSQL point in time recovery – experiences
  • Experiences with PostgreSQL Google Cloud SQL
  • Similarity of two strings – experiences
  • Bash script for emergency stop of PostgreSQL
  • Build latest pgloader from sources (Debian 9)

Categories

  • Ansible
  • Backup and restore
  • Cheet sheets
  • Cloud
  • Constraints
  • Data types
  • Database
  • Design patterns
  • Errors, Exceptions
  • Example application
  • Extensions
  • Foreign data wrappers
  • Indexes
  • Javascript for PG
  • Locks
  • News
  • Optimizer
  • Partitioning
  • pg-barman / pg_basebackup
  • pgloader
  • PL/pqSQL
  • PostgreSQL + Python
  • PostgreSQL on Linux / BSD
  • PostgreSQL with ansible
  • psql
  • Replication
  • Security
  • Server
  • Sessions / Connections
  • Tables
  • Transactions
  • Triggers / Event triggers
  • Troubleshooting
  • Usefull programs
  • Views

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
  • PostgreSQL packages for Debian and Ubuntu
  • Useful SQLs to check contents of PostgreSQL9.4 shared_buffer
  • Install PostgreSQL 10 on Ubuntu
  • Facebook
  • Twitter
  • RSS

Designed by Elegant Themes | Powered by WordPress

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish.Accept Reject Read More
Privacy & Cookies Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Non-necessary
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
SAVE & ACCEPT