Re: problems with set_config, work_mem, maintenance_work_mem, and sorting

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jon Nelson <jnelson+pgsql@xxxxxxxxxxx> writes:
> On Tue, Feb 28, 2012 at 2:51 PM, Tom Lane <tgl@xxxxxxxxxxxxx> wrote:
>> Hmph ... does seem a bit weird.  Can you turn on log_statements and
>> identify which operations aren't using the session values?

> I had log_min_duration_statement = 1000.

That's not really going to prove much, as you won't be able to see any
commands that might be setting or resetting the work_mem parameters.

> ... which is the ORM library (SQLAlchemy) doing a reflection of the
> table(s) involved.

Oh, there's an ORM involved?  I'll bet a nickel it's doing something
surprising, like not issuing your SET until much later than you thought.

			regards, tom lane

-- 
Sent via pgsql-performance mailing list (pgsql-performance@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance


[Postgresql General]     [Postgresql PHP]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Yosemite]

  Powered by Linux