All posts moved to www.raghavt.blog
Hello Readers,I have moved all my community PostgreSQL posts from blogspot to own site "www.raghavt.blog".For all latest posting please refer "www.raghavt.blog"Sorry for the inconvenience.Thank...
View ArticleCREATE LANGUAGE plpython3u - PostgreSQL 9.6
This is one of the quickest blog am publishing :). I am publishing from my terminal as is of my testing to create language plpython3u. Using trusted or untrusted distributions of python we can create...
View ArticleHow to rotate PgBouncer logs in Linux/Windows ?
Before doing a deep dive into the subject, a short outline about PgBouncer, its a lightweight connection pooler for PostgreSQL that dramatically reduces the processing time and resources for...
View ArticleWays to access Oracle Database in PostgreSQL
Today, organizations stores information(data) in different database systems. Each database system has a set of applications that run against it. This data is just bits and bytes on a file system - and...
View ArticleCompiling write-able mongo_fdw extension on binary format of PostgreSQL...
A short blog to enable write-able mongo_fdw extension in PostgreSQL 9.4. PostgreSQL provides a powerful feature called Foreign Data Wrappers (FDW), which allows DBAs to connect to other data sources...
View ArticleCompiling pg_repack extension on binary format of PostgreSQL installation
This blog is about compiling pg_repack extension on binary format of PostgreSQL installation. Most of you know, pg_repack extension is one of well known PostgreSQL extensions, its especially used for...
View ArticleConfiguring Automatic failover using Replication Manager 2.0 on PostgreSQL 9.3.5
In PostgreSQL high availability(Streaming Replication/Hot Standby), one of the thing require human interference and has no automation, that is in the event of master database crash; initiating failover...
View ArticleImplementing Switchover/Switchback in PostgreSQL 9.3.
This post educates sophisticated DBA's on how to setup graceful Switchover and Switchback environment in PostgreSQL high availability. Firstly, thanks to patch authors Heikki and Fujii for making...
View ArticleSwitchover/Switchback in Slony-I while upgrading PostgreSQL major versions...
Every new release of PostgreSQL comes with a packed of exciting features. To benefit new features, database server should be upgraded. Choosing traditional upgrade paths like pg_dump/pg_restore or...
View ArticleHow to replicate only INSERTs not DELETEs/UPDATEs on Slony Slave Node ?
In the first place, we need to know about why such requirement needed. IMO, its absolutely a business necessity to maintain some kind of historical data on the target database(Slave Node). Especially,...
View ArticleUtilising caching contrib's pg_prewarm and pg_hibernator in PostgreSQL 9.4.
Numerous DBA's (counting me), put questions all the time to PostgreSQL hackers/developers/architects on mailing list:Q1. Does PG has the ability to cache/warm a relation ?Q2. Is it possible to return...
View ArticleFew areas of improvements in PostgreSQL 9.4
With the beta release of PostgreSQL 9.4, DBA's have been given some cool features like pg_prewarm, JSONB, ALTER SYSTEM, Replication Slots and many more. Out of numerous architectural level features...
View Article"WARNING: Mismatch found between sl_table and pg_class." in Slony-I
WARNING: Mismatch found between sl_table and pg_class. Slonik command REPAIR CONFIG may be useful to rectify this.2014-04-26 07:32:54 PDT FATAL slon_node_health_check() returned false - fatal health...
View ArticleFaster statistics update after upgrade using "vacuumdb --analyze-in-stages"...
As all of you know after upgrading the database server from one version to other major version, ANALYZE command should be executed to update the pg_catalogs on newly populated data. On a huge upgraded...
View ArticleWhile performing PITR, would it be possible to Pause/Resume in PostgreSQL ?
Yes, truly possible and handled smartly by PostgreSQL. To demo this, first I need to take after the standard technique of Point in Time Recovery in PostgreSQL. Various Books/Articles/Blogs demoed...
View ArticleHow to change all objects ownership in a particular schema in PostgreSQL ?
Few suggesion's here (Thanks), inspired me to compose a bash script for changing all object's (TABLES / SEQUENCES / VIEWS / FUNCTIONS / AGGREGATES / TYPES) ownership in a particular schema in one go....
View ArticleNew Oracle-Compatibility features in PostgresPlus Advanced Server 9.3Beta
In short about EnterpriseDB product PostgresPlus Advanced Server, its built upon PostgreSQL community version with Oracle-Compatibility features and its ability to run with existing Oracle applications...
View ArticlePostgreSQL Compressed Archive Logs in Windows
Many have blogged and offered glaringly on how to compress archive logs in PostgreSQL, I desire to share one of a short version from my end which's on Windows.If archive storage is concern, then you...
View ArticleERROR: could not access file "$libdir/plpython2" - ERROR: could not access...
Above error described on PG mailing as it failes to CREATE LANGUAGE plpython2u/plpython3u on PG9.3Beta.Error:postgres=# create language plpython3u;ERROR: could not access file "$libdir/plpython3": No...
View ArticleImprovements in Slony-I 2.2.0beta
Thanks to Slony-I team for releasing Slony-I 2.2.0Beta with many enhancements on key areas. Few are mentioned here:Event capturing protocol changed for performance (sl_log_1 / sl_log_2):Earlier...
View Article