[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
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
]
-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
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