Re: Schema design: user account deletion vs. keeping family tree data

From: Bernice Southey <bernice(dot)southey(at)gmail(dot)com>
To: Christoph Pieper <christoph(at)fecra(dot)de>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Schema design: user account deletion vs. keeping family tree data
Date: 2025-11-24 13:17:53
Message-ID: CAEDh4nz_cKNGg0yX8k0yigZM8Ww=vcpv-0m_vMyR0je+5Kzm4Q@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-general

Christoph Pieper <christoph(at)fecra(dot)de> wrote:
> Question:
> From a PostgreSQL point of view (database best practices, data integrity, performance and long‑term maintainability at millions of rows), which approach would you prefer, or is there a better pattern for this kind of “account can be deleted, but genealogy should remain” use case?

I can tell you what I'm doing. It solved many design problems, but I
don't claim it's "best practice". I split my table in two.
1 - columns that I can keep indefinitely
2 - personal data
That way I just delete the personal data row when I want to remove it.

Thanks, Bernice

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Dominique Devienne 2025-11-24 13:46:20 Re: set role command
Previous Message Michał Kłeczek 2025-11-24 13:13:19 Re: set role command