pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Adriaan Joubert <a.joubert@albourne.com>
Cc: pgsql-hackers@postgreSQL.org
Cc: pgsql-sql@postgreSQL.org
Subject: Re: [HACKERS] DISTINCT ON: speak now or forever hold your peace
Date: Tue, 25 Jan 2000 02:45:17 -0500
Message-ID: <12762.948786317@sss.pgh.pa.us> (raw)
In-Reply-To: <388D4D9D.C4569FBC@albourne.com>
References: <2295.948765015@sss.pgh.pa.us>
	<388D0D55.84F13203@bitmead.com>
	<11547.948771949@sss.pgh.pa.us>
	<388D4D9D.C4569FBC@albourne.com>

Adriaan Joubert <a.joubert@albourne.com> writes:
> I've been using DISTINCT to fix things when vacuum gets into a mess (yes, it
> happened again last night,
> FATAL 1:  VACUUM (vc_rpfheap): BlowawayRelationBuffers returned -2
> ). I then have loads of duplicates in a table and by doing a SELECT DISTINCT
> ... INTO ... I can get rid of them. A few table renames later I'm back in
> business. So how do I do this without DISTINCT?

I didn't say anything about eliminating SELECT DISTINCT; I was talking
about SELECT DISTINCT ON, which is a whole 'nother thing.

> Better would be of course to get rid of the BlowawayRelationBuffers problem.

Quite so.  I think this is fixed for 7.0 ... that error message
indicates a buffer refcount leak, and I fixed several problems
along that line a couple months ago.  We shall see if I got 'em
all or not ...

			regards, tom lane



view thread (36+ messages)  latest in thread

Message-ID: <12762.948786317@sss.pgh.pa.us>
Permalink:  ../12762.948786317@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/12762.948786317@sss.pgh.pa.us

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, a.joubert@albourne.com, pgsql-hackers@postgreSQL.org
  Subject: Re: [HACKERS] DISTINCT ON: speak now or forever hold your peace
  In-Reply-To: <12762.948786317@sss.pgh.pa.us>
  References: <2295.948765015@sss.pgh.pa.us> <388D0D55.84F13203@bitmead.com> <11547.948771949@sss.pgh.pa.us> <388D4D9D.C4569FBC@albourne.com> <12762.948786317@sss.pgh.pa.us>

* 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