Dimitri Fontaine: Trigger Parameters
Sometimes you want to compute values automatically at INSERT time, like for example a duration column out of a start and an end column, both timestamptz. It's easy enough to do with a BEFORE TRIGGER on...
View ArticleHubert 'depesz' Lubaczewski: OmniPITR v1.2.0 released
Title: OmniPITR v1.2.0 released It's been a while since last release, but the new one finally arrived, and has some pretty cool goodies For starters, you can now skip creation of xlog backups – which...
View ArticleJim Smith: COMMIT / ROLLBACK in Oracle and PostgreSQL
COMMIT / ROLLBACK in Oracle and PostgreSQLDavid Edwards and Lucas Wagner Introduction The use of transactions in relational databases allows a database architect to logically group SQL into chunks of...
View ArticleJosh Berkus: PostgreSQL plus Vertica on Tuesday: SFPUG Live Video
This upcoming Tuesday, the 27th, SFPUG will have live streaming video of Chris Bohn from Etsy talking about how he uses PostgreSQL and Vertica together to do data analysis of Etsy's hundreds of...
View ArticleRaghavendra Rao: How to change all objects ownership in a particular schema...
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 ArticleValentine Gogichashvili: Real-time console based monitoring of PostgreSQL...
In many cases, it is important to be able to keep your hand on the pulse of your database in real-time. For example when you are running a big migration task that can introduce some unexpected locks,...
View ArticleMichael Paquier: Postgres module highlight: customize passwordcheck to secure...
passwordcheck is a contrib module present in PostgreSQL core using a hook present in server code when creating or modifying a role with CREATE/ALTER ROLE/USER able to check a password. This hook is...
View ArticleFabien Coelho: Turing Machine in SQL (4)
In previous posts [123], I have presented different ways of implementing a Turing Machine (TM) in SQL with PostgreSQL. All three techniques rely on WITH RECURSIVE to iterate till the TM stops, so as to...
View ArticleHans-Juergen Schoenig: Table bloat revisited: Making tables shrink
Many people are wondering why deleting data from a table in a PostgreSQL database does not shrink files on disk. You would expect storage consumption to go down when data is deleted. This is not always...
View ArticleChris Travers: When to use SELECT * in PostgreSQL
In LedgerSMB we use a lot of queries which involve SELECT *. Many people consider SELECT * harmful but there are several cases where it is useful. Keep in mind we encapsulate the database behind an...
View ArticleIan Barwick: Living on the edge - 9.3 RC1
PostgreSQL 9.3 RC1 was released the other day, and despite the dire warnings I couldn't resist putting it on this server to try out some of the new functionality in live operation. Admittedly it's not...
View ArticleSelena Deckelmann: Fancy SQL Monday: format() instead of quote_*()
In the comments, Isaac pointed out that using format() dramatically increases the readability of SQL. I liked the look of his query, so I dug a little deeper.As of version 9.1 (first released in 2010),...
View ArticleCraig Ringer: Choosing a PostgreSQL text search method
(This article is written with reference to PostgreSQL 9.3. If you’re using a newer version please check to make sure any limitations described remain in place.)PostgreSQL offers several tools for...
View ArticleDimitri Fontaine: Auditing Changes with Hstore
In a previous article about Trigger Parameters we have been using the extension hstore in order to compute some extra field in our records, where the fields used both for the computation and for...
View ArticleYann Larrivee: ConFoo: The conference for web developers is looking for...
ConFoo is currently looking for web professionals with deep understanding of PHP, Java, Ruby, DotNet, HTML5, Databases, Cloud Computing, Security and Mobile development to share their skills and...
View ArticlePeter Eisentraut: Automating patch review
I think there are two kinds of software development organizations (commercial or open source):Those who don’t do code review.Those who are struggling to keep up with code review.PostgreSQL is firmly in...
View ArticlePeter Eisentraut: Testing PostgreSQL extensions on Travis CI revisited
My previous attempt to setup up multiple-PostgreSQL-version testing on Travis CI worked OK, but didn't actually make good use of the features of Travis CI. So I stole, er, adapted an idea from...
View ArticleFabien Coelho: Turing Machine in SQL (5)
In a previous post I have shown how to build a Turing Machine (TM) in SQL with PostgreSQL using a recursive SQL function. I claimed that this would work with versions of PostgreSQL older than 8.4. In...
View ArticleHans-Juergen Schoenig: Reporting: Creating correct output
Creating reports is a core task of every PostgreSQL database engineer or developer. However, many people think that it is enough to hack up some SQL aggregating some data and execute it. This is not...
View ArticleJim Mlodgenski: Latency: That pesky little thing
Recently, I was helping out a client improve their performance of their ETL processes. They were loading several million rows and updating several million more and the whole process was taking better...
View Article