pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Vivek Khera <khera@kcilink.com>
To: pgsql-sql@postgresql.org
Subject: Re: How to store a linked list in a RDBMS
Date: 13 Jun 2001 10:20:05 -0400
Message-ID: <x7lmmw4g2y.fsf@onceler.kciLink.com> (raw)
References: <20010613020819.84921.qmail@web14502.mail.yahoo.com>

>>>>> "SR" == Srikanth Rao <srirao_us@yahoo.com> writes:

SR> I have a linked list representing a tree. How do I
SR> store it in the database? Does PGSQL give us any
SR> special procedures to deal with such structures?

Pick up a data structures book and read up on how to implement a
linked list inside an array.  This maps directly to an SQL table with
a sequential primary key.

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Vivek Khera, Ph.D.                Khera Communications, Inc.
Internet: khera@kciLink.com       Rockville, MD       +1-240-453-8497
AIM: vivekkhera Y!: vivek_khera   http://www.khera.org/~vivek/



view thread (2+ messages)

Message-ID: <x7lmmw4g2y.fsf@onceler.kciLink.com>
Permalink:  ../x7lmmw4g2y.fsf@onceler.kciLink.com/
Also on:    postgresql.org/message-id/x7lmmw4g2y.fsf@onceler.kciLink.com

 · 

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: khera@kcilink.com
  Subject: Re: How to store a linked list in a RDBMS
  In-Reply-To: <x7lmmw4g2y.fsf@onceler.kciLink.com>

* 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