From: | Barry Lind <barry(at)xythos(dot)com> |
---|---|
To: | Sunit Bhatia <bhatia_sunit(at)hotmail(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org, pgsql-jdbc(at)postgresql(dot)org |
Subject: | Re: Data Versioning |
Date: | 2001-08-02 02:46:49 |
Message-ID: | 3B68BF19.3020306@xythos.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-jdbc |
You should be able to easily design a database schema that does what you
want. For example two tables,
files
------
file_id (PK)
file_name text
...
file_versions
-------------
file_version_id (PK)
file_id (FK to files.file_id)
version integer not null
data oid not null
...
Then when your application creates a new file you would insert a row
into both the files and file_versions table. When your application
'updates' a file it just inserts into the file_versions table the new
version.
There is no explicit support for what you are trying to do native, and I
don't know of any other databases that support that type of
functionality either (at least I know Oracle does not).
thanks,
--Barry
Sunit Bhatia wrote:
> Does any body know if pgsql supports any kind of versioning of binary
> objects or data. e.g. If I'm storing a binary file in a row of a table,
> I would want to see different versions of the same biary file. Everytime
> I do a write, the version number should be bumped up !!
>
> Is it possible to do it in pgsql or any other databases.
> I'm using JDBC for connecting to database.
>
> thanks
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
>
From | Date | Subject | |
---|---|---|---|
Next Message | Nils O. =?iso-8859-1?q?Sel=E5sdal?= | 2001-08-02 03:00:38 | RE: Finding number of current connections |
Previous Message | Hiroshi Inoue | 2001-08-02 02:26:26 | Re: Corrupted tables? |
From | Date | Subject | |
---|---|---|---|
Next Message | Dave Cramer | 2001-08-02 03:15:58 | RE: Re: What needs to be done? |
Previous Message | Bruce Momjian | 2001-08-02 02:41:04 | Re: What needs to be done? |