Re: Configure Postgres From SQL - Mailing list pgsql-general

From tv@fuzzy.cz
Subject Re: Configure Postgres From SQL
Date
Msg-id 2465.85.161.190.175.1278942980.squirrel@sq.gransy.com
Whole thread Raw
In response to Configure Postgres From SQL  (Tom Wilcox <hungrytom@gmail.com>)
List pgsql-general
> Hi,
>
> Is it possible to configure postgres from SQL?
>
> I am interested in turning off fsync for a set of queries (that take
> ages to run) and then turn fsync back on again afterwards.

There are things that can be changed at runtime using SQL - in that case
you may just type "SET enable_seqscan = Off" etc.

But you can't change fsync, it does not make sense to change this settings
for individual queries.

As Thom Brown already pointed out, it's not a good way to tune your
queries. If you don't need to keep consistency (which is the purpose of
fsync), then you may change this directly in postgresql.conf. And if you
don't need consistency you must not change that.

Tomas


pgsql-general by date:

Previous
From: Thom Brown
Date:
Subject: Re: Configure Postgres From SQL
Next
From: Thom Brown
Date:
Subject: Re: Configure Postgres From SQL