Re: [HACKERS] Database object names and libpq in UTF-8 locale on Windows

2012-11-22 Thread Sebastien FLAESCH
Tom, Andrew, We have the same issue in our product: Support UTF-8 on Windows. You know certainly that UTF-8 code page (65001) is no supported by MS Windows when you set the locale with setlocale(). You cannot rely on standard libc functions such as isalpha(), mbtowc(), mbstowc(), wctomb(),

Re: [HACKERS] Database object names and libpq in UTF-8 locale on Windows

2012-10-22 Thread Sebastien FLAESCH
Hi all, I would appreciate some help or comments on this topic... Is this the wrong mailing list to ask such question? Seb On 10/18/2012 10:15 AM, Sebastien FLAESCH wrote: Hello, Using PostgreSQL 9.2.1 on Windows, I am facing a strange character set issue with a UTF-8 database. Maybe

[HACKERS] Database object names and libpq in UTF-8 locale on Windows

2012-10-18 Thread Sebastien FLAESCH
to use a C collation and char type for UTF-8 databases on Windows? I know that UTF-8 is not supported by the Windows C/POSIX library (setlocale, and co). Does it mean that it's not realistic to use UTF-8 encoding for PostgreSQL databases on Windows...? Thanks for reading. Sebastien FLAESCH Four Js

[HACKERS] Database object names and libpq in UTF-8 locale on Windows

2012-10-18 Thread Sebastien FLAESCH
to use a C collation and char type for UTF-8 databases on Windows? I know that UTF-8 is not supported by the Windows C/POSIX library (setlocale, and co). Does it mean that it's not realistic to use UTF-8 encoding for PostgreSQL databases on Windows...? Thanks for reading. Sebastien FLAESCH Four Js

Re: [HACKERS] [GENERAL] INTERVAL SECOND limited to 59 seconds?

2009-06-01 Thread Sebastien FLAESCH
operators and functions) are not 100% SQL99, but they are close... Thanks a lot! Seb Tom Lane wrote: Sebastien FLAESCH s...@4js.com writes: I would expect that an INTERVAL SECOND can store more that 59 seconds. I took a look into the SQL spec and I think that we do indeed have a spec compliance

[HACKERS] INTERVAL data type and libpq - what format?

2009-05-18 Thread Sebastien FLAESCH
Hello, I try to use the new 8.4 INTERVAL type with libpq, but get crazy with the input formatting rules... I use PQprepare() / PQexecPrepared() with parameter list, binding the INTERVAL values with the 1186 pg_type (is this ok?) and passing a string buffer with values like: 12345 for an

[HACKERS] V8.3.0: PQprepare()/PQexecPrepared() and DECLARE CURSOR

2007-12-18 Thread Sebastien FLAESCH
Hi All, I am new to this mailing list and want to participate to the 8.3.0 beta program. (Sorry to be late BTW) My name is Sebastien FLAESCH and I am in charge of the database interfaces at Four J's Development Tools. Our product is a Informix 4gl compatible compiler / runtime system. I

Re: [HACKERS] V8.3.0: PQprepare()/PQexecPrepared() and DECLARE CURSOR

2007-12-18 Thread Sebastien FLAESCH
Sorry I should have double checked, it's my fault. I do not CLOSE the cursor before the third PQexecPrepare()... Never mind. Seb Sebastien FLAESCH wrote: Hi All, I am new to this mailing list and want to participate to the 8.3.0 beta program. (Sorry to be late BTW) My name is Sebastien

Re: [HACKERS] PostgreSQL 8.3, libpq and WHERE CURRENT OF

2007-10-28 Thread Sebastien FLAESCH
about the overhead/cost of moving to DECLARE CURSOR, it would help me a lot. Remember I am talking about a driver for our VM = moving to DECLARE CURSOR would apply to all SELECT statements used in an application. Thanks Seb Florian G. Pflug wrote: Sebastien FLAESCH wrote: Forget this one, just

Re: [HACKERS] PostgreSQL 8.3, libpq and WHERE CURRENT OF

2007-10-28 Thread Sebastien FLAESCH
. Pflug wrote: Sebastien FLAESCH wrote: Forget this one, just missing the WITH HOLD option... Must teach myself a bit more before sending further mails. Seb AFAIK you cannot use WITH HOLD together with updateable cursors. I might be wrong, though... regards, Florian Pflug

[HACKERS] PostgreSQL 8.3, libpq and WHERE CURRENT OF

2007-10-26 Thread Sebastien FLAESCH
Tool vendor and have a bunch of customers migrating legacy applications from Informix to PostgreSQL... Thanks a lot! Sebastien FLAESCH Database Interfaces Four J's Development Tools ---(end of broadcast)--- TIP 9: In versions below 8.0, the planner

Re: [HACKERS] PostgreSQL 8.3, libpq and WHERE CURRENT OF

2007-10-26 Thread Sebastien FLAESCH
statement not create a cursor on the server side? If yes, would it not be possible to pass a cursor name as in ODBC? Best regards, Seb Heikki Linnakangas wrote: Sebastien FLAESCH wrote: Just looked at the new features of 8.3 and realized that positioned updates/deletes is now possible with this new

Re: [HACKERS] PostgreSQL 8.3, libpq and WHERE CURRENT OF

2007-10-26 Thread Sebastien FLAESCH
Tom Lane wrote: Sebastien FLAESCH [EMAIL PROTECTED] writes: Does a simple PQPrepare() with a SELECT statement not create a cursor on the server side? No. A prepared statement is just a query plan, not a query-in-progress. Yes of course, I meant PQprepare() + PQexecPrepared

Re: [HACKERS] PostgreSQL 8.3, libpq and WHERE CURRENT OF

2007-10-26 Thread Sebastien FLAESCH
Forget this one, just missing the WITH HOLD option... Must teach myself a bit more before sending further mails. Seb Sebastien FLAESCH wrote: Ok... Tested with 8.2.3: Actually you can't DECLARE a cursor outside a transaction: test1= declare c1 cursor for select * from dbit2; ERROR: DECLARE

Re: [HACKERS] PostgreSQL 8.3, libpq and WHERE CURRENT OF

2007-10-26 Thread Sebastien FLAESCH
. Anyway, thanks for your help. Seb Tom Lane wrote: Sebastien FLAESCH [EMAIL PROTECTED] writes: Does a simple PQPrepare() with a SELECT statement not create a cursor on the server side? No. A prepared statement is just a query plan, not a query-in-progress. The Bind/Execute messages sent