Re: [SQL] Bit string help, please

2008-03-06 Thread Richard Huxton
[EMAIL PROTECTED] wrote: insert into table1 values( DEFAULT, B'1'::bit( n ) ); Where n is one of the parameters to the PL/pgSQL function, but that doesn't work. PostgreSQL doesn't like having a variable for the bit string length. Does anyone have any ideas how I could achieve this? Try

Re: [SQL] Bit string help, please

2008-03-06 Thread tyrrill_ed
much. Thanks, Ed -Original Message- From: Richard Huxton [mailto:[EMAIL PROTECTED] Sent: Thursday, March 06, 2008 12:14 AM To: Tyrrill, Ed Cc: pgsql-sql@postgresql.org Subject: Re: [SQL] Bit string help, please [EMAIL PROTECTED] wrote: insert into table1 values( DEFAULT, B'1'::bit

Re: [SQL] Bit string help, please

2008-03-06 Thread Tena Sakai
] -Original Message- From: [EMAIL PROTECTED] on behalf of [EMAIL PROTECTED] Sent: Thu 3/6/2008 10:24 AM To: [EMAIL PROTECTED] Cc: pgsql-sql@postgresql.org Subject: Re: [SQL] Bit string help, please I tried this real quick at the psql command prompt, and unfortunately it doesn't work: mydb=# select

[SQL] Bit string help, please

2008-03-05 Thread tyrrill_ed
Hey PostgreSQL Gurus, I am experimenting with PostgreSQL bit strings to see if they might help with some performance issues I am having. I added a bit varying column to one of my tables. I have a PL/pgSQL function with an insert statement into this table. For the bit varying column I would