Re: Global constants

From: Keary Suska <hierophant(at)pcisys(dot)net>
To: PostgreSQL <pgsql-general(at)postgresql(dot)org>
Subject: Re: Global constants
Date: 2001-09-21 01:04:20
Message-ID: B7CFEE34.3717%hierophant@pcisys.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Setting up a table would be the most manageable, but if you don't want to do
that you could create one or more functions to accomplish this.

Keary Suska
Esoteritech, Inc.
"Leveraging Open Source for a better Internet"

> From: "Mihai Gheorghiu" <tanethq(at)earthlink(dot)net>
> Date: Thu, 20 Sep 2001 16:58:04 -0400
> To: <pgsql-general(at)postgresql(dot)org>
> Subject: [GENERAL] Global constants
>
> Can there be anything like global constants in PG? They should be seen by
> any session.
> E.g.:
> User rights are defined as int4's, with each bit representing an area where
> they have access. Testing this would be easier if I had constants like
> ISACCOUNTING, which I AND with the data in the rights field. I'd like to
> define ISACCOUNTING=1024 sometime in the beginning (at server startup?).
> Thank you.
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> message can get through to the mailing list cleanly
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message R Talbot 2001-09-21 02:21:54 Problem: Failed Make on Linux Pgres v. 7.1.2
Previous Message Peter Eisentraut 2001-09-20 23:33:18 Re: Global constants