Re: Configure Postgres From SQL

From: tv(at)fuzzy(dot)cz
To: "Tom Wilcox" <hungrytom(at)gmail(dot)com>
Cc: "pgsql-general" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Configure Postgres From SQL
Date: 2010-07-12 13:56:20
Message-ID: 2465.85.161.190.175.1278942980.squirrel@sq.gransy.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Thom Brown 2010-07-12 13:57:23 Re: Configure Postgres From SQL
Previous Message Adrian Klaver 2010-07-12 13:55:50 Re: Configure Postgres From SQL