Re: [HACKERS] LONG

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Hiroshi Inoue <Inoue(at)tpf(dot)co(dot)jp>
Cc: tgl(at)sss(dot)pgh(dot)pa(dot)us, pgsql-hackers(at)postgreSQL(dot)org, Jan Wieck <wieck(at)debis(dot)com>
Subject: Re: [HACKERS] LONG
Date: 1999-12-13 05:59:21
Message-ID: 199912130559.AAA18941@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> > I am suggesting the longoid is not the oid of the primary or long*
> > table, but a unque id we assigned just to number all parts of the long*
> > tuple. I thought that's what your oid was for.
> >
>
> Unfortunately I couldn't follow this issue correctly.
> Is the format of long value relation different from Jan's original now ?
>
> - At CREATE TABLE, a long value relation named
> "_LONG<tablename>" is created for those tables who need it.
> And of course dropped and truncated appropriate. The schema
> of this table is
>
> rowid Oid, -- oid of our main data row

I am suggesting a unique oid just to store this long value. The new oid
gets stored in the primary table, and on every row of the long* table.

> rowattno int2, -- the attribute number in main data

Not needed anymore.

> chunk_seq int4, -- the part number of this data chunk
> chunk text -- the content of this data chunk

Yes.

>
> I thought that there's an unique index (rowid,rowattno,chunk_seq).

Index on longoid only. No need index on longoid and chunk_seq because
you don't need the rows returned in order.

> Seems we could even update partially(specified chunk_seq only)
> without problem.

That could be done, but seems too rare because the new data would have
to be the same length. Doesn't seem worthit, though others may
disagree.

--
Bruce Momjian | http://www.op.net/~candle
maillist(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 1999-12-13 06:03:26 Re: [HACKERS] generic LONG VARLENA
Previous Message Hiroshi Inoue 1999-12-13 05:19:27 RE: [HACKERS] LONG