[PERFORM] PL/pgSQL functions - text / varchar - havy performance issue?!

2003-08-29 Thread Oliver Siegmar
Hi, I'm using PostgreSQL 7.3.4 and noticed a havy performance issue when using the datatype text for PL/pgSQL functions instead of varchar. This is the table: CREATE TABLE user_login_table ( id serial, username varchar(100), PRIMARY ID (id), UNIQUE (username) ); This table

Re: [PERFORM] PL/pgSQL functions - text / varchar - havy performance issue?!

2003-08-29 Thread Oliver Siegmar
Hi Bill, On Friday 29 August 2003 16:46, you wrote: Postgres has to convert the text to a varchar before it can actually do anything. It's possible (though I'm not sure) that it has to do the conversion with each record it looks at. Nope. I tested you function with the temporary varchar