Florian Weimer <fweimer@xxxxxxxxxx> writes: > It's still quite surprising that this temporarily needs multiple > gigabytes of RAM, much more than what's required in in terms of work_mem > to make this query run quickly. I doubt there's anything all that interesting there, but if you want people to investigate this behavior, you'll need to provide a self-contained test case. regards, tom lane -- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general