From: Kjell Tore Fossbakk <kjelltore@gmail.com>
To: Tobias Brox <tobias@nordicbet.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Querying 19million records very slowly
Date: Thu, 23 Jun 2005 15:31:13 +0200
Message-ID: <e79986c505062306313a0d225a@mail.gmail.com> (raw)
In-Reply-To: <20050622162844.GE7839@tobias>
References: <BF4268C3-E328-11D9-B899-000393D33C2E@refractions.net>
<42B976D0.3000909@PresiNET.com>
<e79986c505062207417d460322@mail.gmail.com>
<20050622162844.GE7839@tobias>
-I also changed now() to current_time, which increased performance quite
good. I need to make further tests, before I'll post any results.
-I tried to change now()- interval 'x hours' to like 2005-06-22 16:00:00+02.
This also increased the performance.
changing to time > '2005-06-22 16:00:00+02' (or what ever date is 24 hours
back) or time > current_time - interval '24 hours' will be used.
I'm running FreeBSD 4.11, and im editing the file in
/usr/local/etc/postgresql.conf, but it doesnt help. When i start up "psql
database", none of the options are changed (with a restart of the
postmaster). I cant find a '--configuration=path/file' option for the
postmaster either...
Kjell Tore
On 6/22/05, Tobias Brox <tobias@nordicbet.com> wrote:
>
> [Kjell Tore Fossbakk - Wed at 07:41:54AM -0700]
> > I cant get the config file to load into my postgres. that's the
> > problem. I want to set it to 10k, but it is only still at 1000... I
> > save the file and restart the service..
> >
> > yes, i ment 'pg_ctl reload', sry about that one.
>
> Classical problem, a bit depending on the distro you are using.
>
> The "master" file usually resides in /etc/postgresql while the actual file
> used usually resides in /var/lib/postgres/data ... or something. Some
> distros copies over the file (such that one always should edit the file in
> /etc) others don't (thus you either have to do that your self, or edit the
> file in the database data directory.
>
> --
> Tobias Brox, +86-13521622905
> Nordicbet, IT dept
>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: kjelltore@gmail.com, tobias@nordicbet.com
Subject: Re: Querying 19million records very slowly
In-Reply-To: <e79986c505062306313a0d225a@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox