Re: How to store a linked list in a RDBMS - Mailing list pgsql-sql

From Vivek Khera
Subject Re: How to store a linked list in a RDBMS
Date
Msg-id x7lmmw4g2y.fsf@onceler.kciLink.com
Whole thread Raw
In response to How to store a linked list in a RDBMS  (Srikanth Rao <srirao_us@yahoo.com>)
List pgsql-sql
>>>>> "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/


pgsql-sql by date:

Previous
From: Martín Marqués
Date:
Subject: Re: ORDER BY what?
Next
From: "Josh Berkus"
Date:
Subject: Re: Inheritance - Multiple membership