Unix Technical Forum

Re: Revision Control

This is a discussion on Re: Revision Control within the pgsql Novice forums, part of the PostgreSQL category; --> I'm no DB guru, but on the projects that I've worked on in the past, this approach has served ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Novice

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-17-2008, 09:30 PM
Kevin Crenshaw
 
Posts: n/a
Default Re: Revision Control

I'm no DB guru, but on the projects that I've worked on in the past,
this approach has served me well. I have also seen it recommended in my
reference books for managing users and groups ie...

Table1: Users
Table2: Groups
Table3: UsersGroups

HTH,


kevin

-----Original Message-----
From: operationsengineer1@yahoo.com
[mailtoperationsengineer1@yahoo.com]
Sent: Tuesday, February 15, 2005 10:14 AM
To: Mike G.; Deepblues
Cc: pgsql-novice@postgresql.org
Subject: [NOVICE] Revision Control

i'm working with data that requires revisions.

the easiest way to think about it is a product by
revision. for example,

product A, rev 1
product A, rev 2
product A, rev 3

where is revision is potentially a viable product to
some customer. iow, customer blue may order product
A, rev 3 and customer green may want product A, rev 1.

i have put some thought into this and developed the
following scheme...

three tables (T=table, C=column in table, PK=primary
key, FK=foreign key):

T product_base
C PK product_base_id
C product_number
C product_name
C product_description

T revision
C PK revision_id
C revision_number
C revision_description

T product_revision
C PK product_revision_id
C FK product_base_id
C FK revision_id

does this seem like a reasonable approach to solving
this problem? please let me know if you have a better
approach or more information to improve this approach.



__________________________________
Do you Yahoo!?
Yahoo! Mail - 250MB free storage. Do more. Manage less.
http://info.mail.yahoo.com/mail_250

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org


---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 04:25 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com