Browsing Tag
postgresql
91 posts
How to Use the PL/Perl Language in PostgreSQL
Long before Python became the go-to scripting language for data processing, Perl was the workhorse language for text…
How to Use the PL/Python Language in PostgreSQL
Of all the alternative procedural languages available in PostgreSQL, PL/Python is the one I reach for most often…
How to Use the PL/pgSQL Language in PostgreSQL
If I had to pick one skill that separates someone who merely queries PostgreSQL from someone who actually…
How to Create Custom Operators in PostgreSQL
One of the features that consistently surprises people who are new to PostgreSQL is that operators like +,…
How to Create Custom Aggregates in PostgreSQL
SUM(), AVG(), COUNT(), and ARRAY_AGG() cover a huge percentage of everyday aggregation needs, but sooner or later I…
How to Create Triggers in PostgreSQL
Triggers are one of those PostgreSQL features I underestimated for a long time — until I inherited a…
How to Create Stored Procedures in PostgreSQL
For a long time, PostgreSQL only had functions — no true stored procedures — which meant every piece…
How to Create User-Defined Functions in PostgreSQL
User-defined functions are, in my experience, the single most-used piece of PostgreSQL’s extensibility toolkit — far more common…
How to Use Custom Data Types in PostgreSQL
If you’ve spent any real time working with PostgreSQL, you’ve probably noticed it’s not just another relational database…
How to Use Composite Data Types in PostgreSQL
Anyone who’s worked with a general-purpose programming language is familiar with the idea of a struct or an…