Skip to content

Instantly share code, notes, and snippets.

View zpl's full-sized avatar

Denis Shirokov zpl

View GitHub Profile
@zpl
zpl / postgres-debug.sql
Last active August 29, 2015 14:08
Postgres in-query debug messages
/*
example:
#
WITH RECURSIVE t(n) AS (
VALUES (debug('init: ' || 1,1))
UNION ALL
SELECT debug('recursion: ' || n+1 ,n+1)
FROM t