Skip site navigation (1) Skip section navigation (2)

Re: [SQL] OFFSET impact on Performance???

From: Greg Stark <gsstark(at)mit(dot)edu>
To: alex(at)neteconomist(dot)com
Cc: Richard Huxton <dev(at)archonet(dot)com>,Andrei Bintintan <klodoma(at)ar-sd(dot)net>, pgsql-sql(at)postgresql(dot)org,pgsql-performance(at)postgresql(dot)org
Subject: Re: [SQL] OFFSET impact on Performance???
Date: 2005-01-25 18:28:46
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-performancepgsql-sql
Alex Turner <armtuk(at)gmail(dot)com> writes:

> I am also very interesting in this very question.. Is there any way to
> declare a persistant cursor that remains open between pg sessions? 
> This would be better than a temp table because you would not have to
> do the initial select and insert into a fresh table and incur those IO
> costs, which are often very heavy, and the reason why one would want
> to use a cursor.

TANSTAAFL. How would such a persistent cursor be implemented if not by
building a temporary table somewhere behind the scenes?

There could be some advantage if the data were stored in a temporary table
marked as not having to be WAL logged. Instead it could be automatically
cleared on every database start.


In response to


pgsql-performance by date

Next:From: Litao WuDate: 2005-01-25 18:29:26
Subject: Re: reltuples after vacuum and analyze
Previous:From: Mitch PirtleDate: 2005-01-25 18:19:48
Subject: PG versus FreeBSD, startup and connections problems

pgsql-sql by date

Next:From: Clint StotesberyDate: 2005-01-25 18:39:16
Subject: Re: converting Oracle scripts to PostgreSQL
Previous:From: Dennis SacksDate: 2005-01-25 18:27:31
Subject: Re: converting Oracle scripts to PostgreSQL

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group