From: | Lætitia Avrot <laetitia(dot)avrot(at)gmail(dot)com> |
---|---|
To: | coelho(at)cri(dot)ensmp(dot)fr |
Cc: | pgsql-hackers(at)lists(dot)postgresql(dot)org |
Subject: | Re: Constraint documentation |
Date: | 2018-06-25 15:45:37 |
Message-ID: | CAB_COdiKFs=HbKmrdHVK1sbKy=8GYKaa1WPN8o1GjuzAZnOT_A@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Hello,
Ok, I corrected the patch as suggested. I hope I did it right.
Have a nice day,
Lætitia
Le lun. 25 juin 2018 à 16:02, Lætitia Avrot <laetitia(dot)avrot(at)gmail(dot)com> a
écrit :
> Thanks!
> I'll correct the patch ASAP including your modifications.
>
> Le sam. 23 juin 2018 à 19:15, Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr> a
> écrit :
>
>>
>> Hello lætitia,
>>
>> My 0.02 € to try to simplify the suggested documentation.
>>
>> > Check constraint were not
>>
>> are not
>>
>> > designed to enforce business rules across tables.
>>
>> > Avoid using check constraints with function accessing to other tables
>>
>> accessing other tables (no "to")
>>
>> > and prefer triggers instead (please refer to <xref linkend="triggers"/>
>> > for more information about triggers).
>>
>> ... and use <xref linkend="triggers"/> instead.
>>
>> > PostgreSQL won't prevent you from doing so,
>>
>> Although PostgreSQL ... so,
>>
>> > but be aware you might encounter difficulties to restore dumps
>> > (generated with pg_dump or pg_dumpall) if you do.
>>
>> beware that dumps generated by <application>pg_*<...> or <...> may be
>> hard
>> to restore because of such checks, as the underlying dependencies are not
>> taken into account.
>>
>> --
>> Fabien.
>
>
>
> --
> *Think! Do you really need to print this email ? *
> *There is no Planet B.*
>
--
*Think! Do you really need to print this email ? *
*There is no Planet B.*
Attachment | Content-Type | Size |
---|---|---|
check_constraint_accross_table_note_v2.patch | text/x-patch | 903 bytes |
From | Date | Subject | |
---|---|---|---|
Next Message | Gilles Darold | 2018-06-25 15:50:40 | Re: [PATCH] Include application_name in "connection authorized" log message |
Previous Message | Jeremy Finzel | 2018-06-25 15:37:18 | Some pgq table rewrite incompatibility with logical decoding? |