| From: | FOUTE K(dot) Jaurès <jauresfoute(at)gmail(dot)com> |
|---|---|
| To: | Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com> |
| Cc: | Andreas Joseph Krogh <andreas(at)visena(dot)com>, Thomas Kellerer <shammat(at)gmx(dot)net>, PostgreSQL General <pgsql-general(at)lists(dot)postgresql(dot)org> |
| Subject: | Re: PostgreSQL - Ordering Table based of Foreign Key |
| Date: | 2021-10-03 16:24:14 |
| Message-ID: | CAHQ1jfdC=WLoDNMFtxNf5wW31QWcYefrnBhO_ocg=u_ruv=8Tg@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
I need to delete data from about 100 table in the production system for a
specific client without stopping application.
On Sun, 3 Oct 2021, 17:19 Adrian Klaver, <adrian(dot)klaver(at)aklaver(dot)com> wrote:
> On 10/3/21 7:40 AM, FOUTE K. Jaurès wrote:
> > Thanks for your input but I want to make a delete with where clause
>
> Then Thomas Kellerer's suggestion of having "ON DELETE CASCADE" on the
> FK would seem to be what you need. If not then you will need to provide
> more information about what you are trying to achieve?
>
>
> --
> Adrian Klaver
> adrian(dot)klaver(at)aklaver(dot)com
>
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Joao Miguel Ferreira | 2021-10-03 16:56:38 | pg_dump save command in output |
| Previous Message | Adrian Klaver | 2021-10-03 16:19:00 | Re: PostgreSQL - Ordering Table based of Foreign Key |