pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Huxton <dev@archonet.com>
To: pgsql-performance@nullmx.com
Cc: pgsql-performance@postgresql.org
Subject: Re: Rewriting DISTINCT and losing performance
Date: Mon, 21 May 2007 12:40:21 +0100
Message-ID: <46518525.9010407@archonet.com> (raw)
In-Reply-To: <200705202228.32129.pgsql-performance@nullmx.com>
References: <200705202228.32129.pgsql-performance@nullmx.com>

Chuck D. wrote:
>                 Table "geo.city"
>    Column   |          Type          | Modifiers
> ------------+------------------------+-----------
>  city_id    | integer                | not null
>  state_id   | smallint               |
>  country_id | smallint               |
>  latitude   | numeric(9,7)           |
>  longitude  | numeric(10,7)          |
>  city_name  | character varying(100) |
> Indexes:
>     "city_pk" PRIMARY KEY, btree (city_id)
>     "idx_city_country_id" btree (country_id) CLUSTER
> Foreign-key constraints:
>     "city_state_id_fk" FOREIGN KEY (state_id) REFERENCES geo.state(state_id)
> ON UPDATE CASCADE ON DELETE CASCADE

Any good reason why country_id is NULLable?

-- 
   Richard Huxton
   Archonet Ltd



view thread (8+ messages)  latest in thread

Message-ID: <46518525.9010407@archonet.com>
Permalink:  ../46518525.9010407@archonet.com/
Also on:    postgresql.org/message-id/46518525.9010407@archonet.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-performance@postgresql.org
  Cc: dev@archonet.com, pgsql-performance@nullmx.com
  Subject: Re: Rewriting DISTINCT and losing performance
  In-Reply-To: <46518525.9010407@archonet.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