"hubert depesz lubaczewski" <depesz@xxxxxxxxx> writes: > and - after some time of this "create table", postmaster process eats all > the memory (over 1.8g), and dies with: > psql:133.sql:125: ERROR: error from Perl function: no unpinned buffers > available at line 5. Could you reduce this to a self-contained example please? Your functions depend on a bunch of tables that you have not provided definitions or data for ... regards, tom lane