pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Josh Berkus <josh@agliodbs.com>
To: Oleg Lebedev <olebedev@waterford.org>
To: Josh Berkus <josh@agliodbs.com>
Cc: Postgres SQL Mailing List <pgsql-sql@postgresql.org>
Subject: Re: won't drop the view
Date: Mon, 17 Dec 2001 17:08:07 -0800
Message-ID: <web-530735@davinci.ethosmedia.com> (raw)
In-Reply-To: <3C1E5BEA.E97CDC74@waterford.org>

Oleg,

> 1. I am using PostgreSQL 7.1.2
> 2. Linux RedHat 7.1
> 3. Pentium II 400 with 256 Megs of RAM
>     14 out of 17 Gigs are free (there is only one disk on this
> system)
> 4. Here is the view definition:
<snip>
> 5. None of the tables involved in the view has BLOBs in it.
>     Row count for the tables are as follows:
>     activity:    253
>     media:    12406
>     set:         826
>     intsetmedia:    22916
>     mediatypemap: 25
>     datatable:    318
>     dtcol:       1698
>     dtrow:      18406
>     dtrowmedia: 10238
> 
> 6. I didn't have debug on when running vacuum, so I can't tell you if
> it
> raised any errors.

Damn.  I can only really help with the obvious things, and you've
covered most of those.  That view should take a long time, given the
complexity ... but a long time is 30-60 seconds, not 10 minutes.

Therefore:

1. Turn up the debug level in postgres.conf
2. Re-start postgresql, and open a console to tail the log.
3. Watch the log as you:
	a) Vacuum Analyze
	b) SELECT from the view again
4. Hope that one of the core team looks into your question.

Beyond that, we're down to monkeying with Postgres' memory settings;
it's possible (but not likely) that you've exhausted the available sort
memory and Postgres is getting stuck in swap-access.  However, that's
just a stab in the dark.

-Josh

______AGLIO DATABASE SOLUTIONS___________________________
                                       Josh Berkus
  Complete information technology      josh@agliodbs.com
   and data management solutions       (415) 565-7293
  for law firms, small businesses        fax 621-2533
    and non-profit organizations.      San Francisco



view thread (12+ messages)  latest in thread

Message-ID: <web-530735@davinci.ethosmedia.com>
Permalink:  ../web-530735@davinci.ethosmedia.com/
Also on:    postgresql.org/message-id/web-530735@davinci.ethosmedia.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: josh@agliodbs.com, olebedev@waterford.org
  Subject: Re: won't drop the view
  In-Reply-To: <web-530735@davinci.ethosmedia.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