Re: Suggested way of associating PG user metadata with record

From: Peter Geoghegan <peter(dot)geoghegan86(at)gmail(dot)com>
To: David <wizzardx(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Suggested way of associating PG user metadata with record
Date: 2009-05-20 12:39:50
Message-ID: db471ace0905200539p41ec037bj8dd78b6405f5045d@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

David,

> A text column should be perfectly fine, and is the simplest
> implementation. But it does have a few possible issues that you need
> to keep in mind (besides things like users being removed). For
> instance, if PostgreSQL users are renamed (eg: ALTER USER name RENAME
> TO newname), then your text column becomes incorrect.

Yes, that had occurred to me. I think I'll go ahead and take the
obvious approach. On the whole, it seems very easy to implement and
maintain to me, and the alternative approach doesn't buy me any very
appreciable advantage.

Thanks,
Peter Geoghegan

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Raymond O'Donnell 2009-05-20 12:43:25 Re: [Windows] Feedback on PG?
Previous Message Robert Gravsjö 2009-05-20 12:04:10 Table partitioning