From: Ross J. Reedstrom <reedstrm@rice.edu>
To: Matthew Nuzum <cobalt@bearfruit.org>
Cc: Tomasz Myrta <jasiek@klaster.net>
Cc: pgsql-sql@postgresql.org
Subject: Re: lost on self joins
Date: Wed, 15 Jan 2003 16:54:44 -0600
Message-ID: <20030115225444.GB29593@wallace.ece.rice.edu> (raw)
In-Reply-To: <003101c2bcd3$720ab1a0$6700a8c0@mattspc>
References: <3E25BDAF.8060109@klaster.net>
<003101c2bcd3$720ab1a0$6700a8c0@mattspc>
On Wed, Jan 15, 2003 at 03:19:38PM -0500, Matthew Nuzum wrote:
> > -----Original Message-----
> > From: Tomasz Myrta [mailto:jasiek@klaster.net]
> > Sent: Wednesday, January 15, 2003 3:00 PM
> > To: Matthew Nuzum
> > Cc: pgsql-sql@postgresql.org
> > Subject: Re: [SQL] lost on self joins
> > >Finaly, a table to allow a many to many join called files_folders
> > > | files_folders
> > >================
> > >x| ffid
> > > | folderid (fk to folders.folderid)
> > > | fileid (fk to files.fileid)
> >
> > Strange. Do you need this table? Can one file exist in several
> > directories?
> > If not, you can just add "folderid" field into table files.
>
> Good point. No, it can't exist in multiple folders, so I guess it's
> overkill to do a many to many here. Thanks for the moment of clarity.
Unless you're attempting to accurately map Unix filesystem sematics, where
the exact same file _can_ be in more than one place in the filesystem
(hard links). It's all about the inode. One of the wierder bits of unix
that you don't often see used in common occurances.
Ross
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: reedstrm@rice.edu, cobalt@bearfruit.org, jasiek@klaster.net
Subject: Re: lost on self joins
In-Reply-To: <20030115225444.GB29593@wallace.ece.rice.edu>
* 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