Re: [SQL] Tree structure table normalization problem (do I need atrigger?)

2000-12-19 Thread Tulassay Zsolt
On Tue, 19 Dec 2000, Frank Joerdens wrote: > Tulassay Zsolt wrote: > [ . . . ] > > The SQL stuff of that nested set structure is fairly easy, I wrote some > > quick'n'dirty plpgsql functions that will do inserts, updates, deletes > > from the tree, display lev

Re: [SQL] Tree structure table normalization problem (do I need atrigger?)

2000-12-19 Thread Tulassay Zsolt
On Tue, 19 Dec 2000, Frank Joerdens wrote: > In a recent thread (How to represent a tree-structure in a relational > database) I asked how to do a tree structure in SQL, and got lots of > suggestions (thanks!), of which I chose the one below: > > create table Category ( > CategoryID int4

Re: [SQL] How to represent a tree-structure in a relational database

2000-12-15 Thread Tulassay Zsolt
On Thu, 14 Dec 2000, Tulassay Zsolt wrote: > > You can find the article dealing with this at > http://www.utdt.edu/~mig/sql-trees > sorry i pasted in the wrong url (this was mentioned in an earlier post) the correct one is: A look at SQL Trees (by Joe Celko) http://www.dbmsmag

Re: [SQL] How to represent a tree-structure in a relational database

2000-12-14 Thread Tulassay Zsolt
There actually is a model of tree structures in SQL databases which is different from those mentioned earlier in that it represents the tree as nested sets (ie. nodes are subsets of parent sets (parent nodes)). There is a huge advantage in this model as it eliminates the need for recursion. For

[SQL] the day after...

2000-06-19 Thread Tulassay Zsolt
hi, our linux box crashed yesterday, and postgresql seems to have some trouble with one of the databases. It says: zsolt@tek:/var/lib/pgsql$ psql tek Connection to database 'tek' failed. FATAL 1: cannot create init file pg_internal.init All other databases are working just fine. Any idea? Th

Re: [SQL] Pg/PLSQL Errors!!

2000-05-30 Thread Tulassay Zsolt
did you install the procedural language correctly? under RedHat, you have to do the following: (the location of the handler is different because of packaging conventions) CREATE FUNCTION plpgsql_call_handler () RETURNS OPAQUE AS '/usr/lib/pgsql/plpgsql.so' LANGUAGE 'C'; CREATE TRUSTED P