Re: [GENERAL] C++ User-defined functions

2009-03-11 Thread George Oakman
ostgresql.org > Subject: Re: [GENERAL] C++ User-defined functions > > Magnus Hagander wrote: > > George Oakman wrote: > >> Thanks Craig, > >> > >> I'm trying to compile a very simple test with Visual Studio (2008), but > >> I get the following

Re: [GENERAL] C++ User-defined functions

2009-03-09 Thread George Oakman
_RETURN_INT32(arg + 1); } If you can help, that would be wonderful. Thanks a lot, George. > Date: Tue, 10 Mar 2009 02:35:34 +0900 > From: cr...@postnewspapers.com.au > To: oakm...@hotmail.com > CC: pgsql-general@postgresql.org > Subject: Re: [GENERAL] C++ User-defined fun

[GENERAL] C++ User-defined functions

2009-03-09 Thread George Oakman
Dear all, I am trying to write a user-defined function in C++. Most examples are give in plain C. I would be very grafeful for a sample program/code-snippet in C++. Thank you very much, George. _ View your Twitter

Re: [GENERAL] Indexing a Bit String column

2009-02-24 Thread George Oakman
in C? Many thanks for your help. George. > To: oakm...@hotmail.com > CC: pgsql-general@postgresql.org > Subject: Re: [GENERAL] Indexing a Bit String column > From: st...@enterprisedb.com > Date: Tue, 24 Feb 2009 15:35:58 + > > > George Oakman writes: &g

[GENERAL] Indexing a Bit String column

2009-02-24 Thread George Oakman
Hi all, I am planning to use the Bit String data type for a large number of binary strings, e.g. CREATE TABLE myTable (myBitStringCol BIT(3)); I will need to perform & (bitwise AND) operations using SELECT on this column, e.g. SELECT * FROM myTable WHERE myBitStringCol & B'101' = myB