From: Tom Lane <tgl@sss.pgh.pa.us>
To: Miroslav Ć ulc <miroslav.sulc@startnet.cz>
Cc: PFC <lists@boutiquenumerique.com>
Cc: John Arbash Meinel <john@arbash-meinel.com>
Cc: PGSQL mailing list <pgsql-performance@postgresql.org>
Subject: Re: How to read query plan
Date: Mon, 14 Mar 2005 11:23:36 -0500
Message-ID: <14079.1110817416@sss.pgh.pa.us> (raw)
In-Reply-To: <423556B8.4020500@startnet.cz>
References: <42345D24.8070104@startnet.cz>
<4234692E.3050802@arbash-meinel.com>
<42347407.2000202@startnet.cz>
<42347D5E.9000900@arbash-meinel.com>
<42348F54.1000408@startnet.cz>
<423493E5.6040203@arbash-meinel.com>
<42355249.8090101@startnet.cz>
<opsnmecyijth1vuj@localhost>
<423556B8.4020500@startnet.cz>
=?ISO-8859-15?Q?Miroslav_=A6ulc?= <miroslav.sulc@startnet.cz> writes:
> PFC wrote:
>> Instead of a varchar(1) containing 'y' or 'n' you could use a BOOL
>> or an integer.
> Sure I could. The problem is our project still supports both MySQL and
> PostgreSQL. We used enum('Y','N') in MySQL so there would be a lot of
> changes in the code if we would change to the BOOL data type.
Just FYI, I did a quick search-and-replace on your dump to replace
varchar(1) by "char", which makes the column fixed-width without any
change in the visible data. This made hardly any difference in the
join speed though :-(. So that is looking like a dead end.
John's idea about re-joining to the main table to pick up the bulk of
its fields only after joining to the sub-tables might work.
regards, tom lane
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: tgl@sss.pgh.pa.us, miroslav.sulc@startnet.cz, lists@boutiquenumerique.com, john@arbash-meinel.com
Subject: Re: How to read query plan
In-Reply-To: <14079.1110817416@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