I need to allow non-superusers to create and restore databases containing plpgsql language procedures. template0 and template1 do not have any languages installed. During restore they receive error: pg_restore: [archiver (db)] could not execute query: ERROR: must be superuser to create procedural language Command was: CREATE PROCEDURAL LANGUAGE plpgsql; How to allow non-superusres to create database with language ? Andrus.