join by char(16) or by bytea? - Mailing list pgsql-general

From Sergei Shelukhin
Subject join by char(16) or by bytea?
Date
Msg-id 1176066966.007769.50700@o5g2000hsb.googlegroups.com
Whole thread Raw
Responses Re: join by char(16) or by bytea?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
One more newbie question.
Due to limitations of both pg and php I gave up on the attempts to
make bigint keys work; I have a choice between 16-byte character
strings or "8-byte" bytea (decode(string_from_above, "hex")) for an
index column for a table.

Which one will be faster for exact matches and joins? Tables will be
big,
there will be no range queries and no partial matching.

Again I cannot test it because I lack production data, I wonder if
it's common knowledge?


pgsql-general by date:

Previous
From: "Simon István"
Date:
Subject: PlPg/SQL mulit-array as a parameter?
Next
From: "marcel.beutner"
Date:
Subject: Re: newid() in postgres