pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Louis-David Mitterrand <vindex+lists-pgsql-sql@apartia.org>
To: pgsql-sql@postgresql.org
Subject: 'image' table with relationships to different objects
Date: Tue, 9 Feb 2010 08:49:09 +0100
Message-ID: <20100209074909.GA11838@apartia.fr> (raw)

Hello,

In my database I have different object types (person, location, event,
etc.) all of which can have several images attached.

What is the best way to manage a single 'image' table with relationships
to (potentially) many different object types while keeping referrential
integrity (foreign keys)?

Thanks,



view thread (8+ messages)  latest in thread

Message-ID: <20100209074909.GA11838@apartia.fr>
Permalink:  ../20100209074909.GA11838@apartia.fr/
Also on:    postgresql.org/message-id/20100209074909.GA11838@apartia.fr

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: vindex+lists-pgsql-sql@apartia.org
  Subject: Re: 'image' table with relationships to different objects
  In-Reply-To: <20100209074909.GA11838@apartia.fr>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox