On 16 October 2012 10:29, Hannu Krosing <hannu@2ndquadrant.com> wrote:
> I would like this to be very similar to a table, so it would be
>
> CREATE MESSAGE QUEUE(fieldname type, ...) foo;
>
> perhaps even allowing defaults and constraints. again, this
> depends on how complecxt the implementation would be.
Presumably just CHECK constraints, not UNIQUE or FKs.
Indexes would not be allowed.
> for the receiving side it would look like a table with only inserts,
> and in this case there could even be a possibility to use it as
> a remote log table.
The queue data would be available via the API, so it can look like anything.
It would be good to identify this with a new rmgr id.
-- Simon Riggs http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training & Services