Re:

From: Jan Wieck <JanWieck(at)Yahoo(dot)com>
To: tankgirl(at)worldonline(dot)es
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re:
Date: 2001-07-03 12:12:18
Message-ID: 200107031212.f63CCIZ12259@jupiter.us.greatbridge.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

tankgirl(at)worldonline(dot)es wrote:
> Hello,
>
> I want to implement versions of a relation using production rules.
>
> I have found that the syntax for creating a version is:
>
> 'CREATE [direction] VERSION Vname FROM Bname'
>
> where...
>
> -> direction can be both forward or backward deltas
> -> Vname is the name of the version (the new table with updated,
> added or deleted tuples)
> -> Bname is the name of the base relation (the table I already have)
>
> I have typed it, but it doesn't work, and there is no man entry for
> 'CREATE VERSION'
>
> I wonder if there is any way of implementing versions using POSTGRES
> rules.
>
> Thankyou.

Hmmm, I can't find that in the grammar at all. What version
of Postgres are you using?

IIRC versioning was some feature addressed in the old
Berkeley code of Postgres, somehow related to timetravel.
Timetravel is long gone.

Maybe you can implement what you want to have with a
combination of triggers, putting some timestamps into extra
columns of your tables, and build views on top of it?

Jan

--

#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me. #
#================================================== JanWieck(at)Yahoo(dot)com #

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

In response to

  • at 2001-07-03 10:29:56 from tankgirl

Browse pgsql-general by date

  From Date Subject
Next Message Martijn van Oosterhout 2001-07-03 13:35:41 [PATCH] Partial indicies almost working (I think)
Previous Message tankgirl 2001-07-03 10:29:56