pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alexey V. Meledin <avm@webclub.ru>
Cc: pgsql-sql@postgresql.org
Subject: Re: planner complaints (was approve VKPts5 unsubscribe pgsql)
Date: Mon, 03 Apr 2000 10:32:06 -0400
Message-ID: <20160.954772326@sss.pgh.pa.us> (raw)
In-Reply-To: <3658.000403@webclub.ru>
References: <006c01bf9d2b$bc6bd000$020018ac@zke.com.pl>
	<3658.000403@webclub.ru>

"Alexey V. Meledin" <avm@webclub.ru> writes:
> What mean "???" at (**).

It's probably a MATERIALIZE node.  The 6.5 explain-printer didn't have
code to recognize MATERIALIZE, so it prints like that.  (Fixed for 7.0.)

> Not optimal way I think

Possibly not.  It's hard to tell when you evidently have never vacuumed
your database.  Those tiny row counts and near-zero costs are presumably
bogus ... but if the planner thinks those tables are small, it's going
to generate plans accordingly.  You need to run a VACUUM, or preferably
VACUUM ANALYZE, to update the statistics the planner needs.

> 2. I've replace btree indexes on relation
> AND atd.ifs_data_id = def.ifs_data_id;
> with:
> create index itd_hash_data_id on ifs_tree_default USING HASH (ifs_data_id);
> create index iatd_hash_data_id on ifs_account_tree_data USING HASH (ifs_data_id);

Why would you do that?  The hash index method doesn't have any advantage
over btree that I can see, and it's got a lot of disadvantages.

			regards, tom lane



Message-ID: <20160.954772326@sss.pgh.pa.us>
Permalink:  ../20160.954772326@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/20160.954772326@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, avm@webclub.ru
  Subject: Re: planner complaints (was approve VKPts5 unsubscribe pgsql)
  In-Reply-To: <20160.954772326@sss.pgh.pa.us>
  References: <006c01bf9d2b$bc6bd000$020018ac@zke.com.pl> <3658.000403@webclub.ru> <20160.954772326@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