Yes, In your session .... set work_mem='4000MB';do rest of sql after ..... -----Original Message----- From: pgsql-admin-owner@xxxxxxxxxxxxxx [mailto:pgsql-admin-owner@xxxxxxxxxxxxxx] On Behalf Of Dinesh Bhandary Sent: Monday, June 13, 2011 11:29 AM To: pgsql-admin@xxxxxxxxxxxxxx Subject: changing work_mem Hi All - Is there a way to change work_mem for a session in postgres without restarting a database? Please let me know. Thanks. Dinesh -- Sent via pgsql-admin mailing list (pgsql-admin@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin -- Sent via pgsql-admin mailing list (pgsql-admin@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin