Re: management of BLOBs - Mailing list pgsql-ru-general

From Andrey N. Oktyabrski
Subject Re: management of BLOBs
Date
Msg-id 46FB5F6A.1050407@antora.ru
Whole thread Raw
In response to Re: management of BLOBs  ("Andrey N. Oktyabrski" <ano@antora.ru>)
List pgsql-ru-general
Andrey N. Oktyabrski wrote:
> -- OBJECT with rights and parameters
> CREATE TABLE _blob (
>   id            SERIAL,
>   usr           TEXT NOT NULL CHECK (usr ~ '^[A-Za-z0-9_]+$'),
>   grp           TEXT NOT NULL CHECK (grp ~ '^[A-Za-z0-9_]+$'),
>   param         HSTORE NOT NULL DEFAULT '',
>   file          BYTEA
> );
Прошу прощения, самое главное поле не добавил в таблицу...

-- OBJECT with rights and parameters
CREATE TABLE _blob (
   id            SERIAL,
   usr           TEXT NOT NULL CHECK (usr ~ '^[A-Za-z0-9_]+$'),
   grp           TEXT NOT NULL CHECK (grp ~ '^[A-Za-z0-9_]+$'),
+ acl           ROW_ACL NOT NULL DEFAULT 'u+rwd',
   param         HSTORE NOT NULL DEFAULT '',
   file          BYTEA
);

pgsql-ru-general by date:

Previous
From: "Andrey N. Oktyabrski"
Date:
Subject: Re: management of BLOBs
Next
From: Dmitry Turin
Date:
Subject: Re: management of BLOBs