Re: [Solved] SQL Server to PostgreSQL

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Ian Turner <vectro(at)pipeline(dot)com>
Cc: Jan Wieck <janwieck(at)Yahoo(dot)com>, Martin Christensen <knightsofspamalot-factotum(at)mail1(dot)stofanet(dot)dk>, pgsql-general(at)postgresql(dot)org
Subject: Re: [Solved] SQL Server to PostgreSQL
Date: 2000-09-03 05:07:28
Message-ID: 7057.967957648@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

Ian Turner <vectro(at)pipeline(dot)com> writes:
> Don't variable-length records incur a performance overhead?

Only to the extent that the system can't cache offset information for
later columns in that table. While someone evidently once thought that
was worthwhile, I've never seen the column-access code show up as a
particularly hot spot in any profile I've run. I doubt you could
actually measure any difference, let alone show it to be important
enough to be worth worrying about.

In any case, char(n) will still do what you want for reasonable-size
records. The TOAST code only kicks in when the total tuple size exceeds
BLCKSZ/4 ... and at that point, compression is a good idea in any case.

Now that you mention it, though, doesn't TOAST break heapam's assumption
that char(n) is fixed length? Seems like we'd better either remove that
assumption or mark char(n) nontoastable. Any opinions which is better?

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jurgen Defurne 2000-09-03 05:47:22 Re: Increasing system speed by using -F option
Previous Message Ron Chmara 2000-09-03 05:00:00 Re: Increasing system speed by using -F option

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2000-09-03 05:25:42 Re: Isn't non-TEST_AND_SET code long dead?
Previous Message Ian Turner 2000-09-03 01:18:22 Re: [Solved] SQL Server to PostgreSQL