From: PFC <lists@boutiquenumerique.com>
To: Ragnar Hafstaư <gnari@simnet.is>
To: Kenneth Gonsalves <lawgon@thenilgiris.com>
Cc: Richard Huxton <dev@archonet.com>
Cc: weberp@paradise.net.nz
Cc: pgsql-sql@postgresql.org
Subject: Re: Query performance problem
Date: Fri, 18 Mar 2005 10:10:10 +0100
Message-ID: <op.snts28pfth1vuj@localhost> (raw)
In-Reply-To: <1111131172.25405.17.camel@localhost.localdomain>
References: <200503172120.20676.weberp@paradise.net.nz>
<1111131172.25405.17.camel@localhost.localdomain>
<200503181049.47566.lawgon@thenilgiris.com>
<42398EB9.2050707@archonet.com>
<200503171801.19412.lawgon@thenilgiris.com>
> DEFAULT applies to INSERTs, NOT NULL applies to UPDATEs too.
In MySQL it applies to both (ie. if you UPDATE to an invalid value, it
sets it to 'something').
NOT NULL without default is useful when you want to be sure you'll never
forget to put a value in that column, when there is no meaningful default.
Also for foreign keys : what would be the default value of a foreign key ?
>
> gnari
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo@postgresql.org so that your
> message can get through to the mailing list cleanly
>
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: lists@boutiquenumerique.com, gnari@simnet.is, lawgon@thenilgiris.com, dev@archonet.com, weberp@paradise.net.nz
Subject: Re: Query performance problem
In-Reply-To: <op.snts28pfth1vuj@localhost>
* 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