Re: Constraint documentation - Mailing list pgsql-hackers

From Patrick Francelle
Subject Re: Constraint documentation
Date
Msg-id 0f600b95-160b-5578-8572-5e49b0fb70a1@francelle.name
Whole thread Raw
In response to Re: Constraint documentation  (Pantelis Theodosiou <ypercube@gmail.com>)
Responses Re: Constraint documentation  ("David G. Johnston" <david.g.johnston@gmail.com>)
List pgsql-hackers
On 08/10/18 07:02, Pantelis Theodosiou wrote:
> 
> I like this:
> 
>> "Postgres does not currently support CHECK constraints containing
> queries, therefore we recommend to avoid them."
> 
> Perhaps adding:
> 
>> CHECK constraints are currently meant to be used as *row constraints*
> only.
>> Use - if possible - UNIQUE or EXCLUDE constraints. for constraints
> that involve many or all rows of a table,
>> and FOREIGN KEY constraints for cross table constraints.
>> More complex constraints will be available when ASSERTION are implemented.
> 
> And then adding some warning about using functions in CHECK constraints
> to bypass current limitations.
> 
> Pantelis Theodsoiou

Hi,

I have rewritten the patch to include your remarks.
In fact, the whole patch is now based on it, so thank you.


Patrick Francelle

Attachment

pgsql-hackers by date:

Previous
From: Adam Brusselback
Date:
Subject: Re: Sequential UUID Generation
Next
From: Stephen Frost
Date:
Subject: Re: More issues with pg_verify_checksums and checksum verificationin base backups