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

From Thom Brown
Subject Re: Configure Postgres From SQL
Date
Msg-id AANLkTikf5gQrMFw3bQpKM5qLEjw5tNEIk_g4SGxF67yl@mail.gmail.com
Whole thread Raw
In response to Configure Postgres From SQL  (Tom Wilcox <hungrytom@gmail.com>)
List pgsql-general
On 12 July 2010 14:29, Tom Wilcox <hungrytom@gmail.com> wrote:
> 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.
>
> Cheers,
> Tom
>

You can only change that option in postgresql.conf and I don't see how
that could only apply to a single query.  I'd focus more on optimising
your queries either by rewriting them, adding indexes
(partial/functional where appropriate), keeping things VACUUM'd or
using prepared statements.

Regards

Thom

pgsql-general by date:

Previous
From: Tom Wilcox
Date:
Subject: Configure Postgres From SQL
Next
From: tv@fuzzy.cz
Date:
Subject: Re: Configure Postgres From SQL