[Qt-interest] Postgresql 9 support

Linos info at linos.es
Wed Nov 3 14:59:52 CET 2010


No problem, it is super-simple patch i have made to work with postgresql 9 in my 
development machine. I suppose the trolls will make this (or a better) change in 
the next release.

Miguel Angel.

El 03/11/10 13:46, Harry Sfougaris escribió:
> Thank you!
> This is exactly what I was hoping for.... Is this your patch, or something that
> was released somewhere I could have looked myself? (just so I know and I may not
> bother the list with things like this).
>
> Harry
>
>
> On 3/11/2010 2:03 μμ, Linos wrote:
>> For me this simple patch telling qt about postgresql version 9 works fine.
>>
>> Regards,
>> Miguel Angel.
>>
>> El 02/11/10 21:45, Harry Sfougaris escribió:
>>> - Compiling works under Windows only with the x86 version of PostgreSQL
>>> (and not the x64)
>>> - The driver still doesn't work: What I have noticed so far is that
>>> QSqlQuery and QSqlQueryModel work, but QSqlTableModel doesn't.
>>>
>>> Harry Sfougaris
>>>
>>> On 2/11/2010 9:56 μμ, Diego Schulz wrote:
>>>> On Tue, Nov 2, 2010 at 1:11 PM, Konrad Rosenbaum<konrad at silmor.de>   wrote:
>>>>> On Tuesday 02 November 2010 14:38:49 Harry Sfougaris wrote:
>>>>>> I'm not sure anyone here can answer this, but I was wondering since
>>>>>> Postgresql 9 is not supported currently by Qt, how long does it usually
>>>>>> take for a major release of a database server to be supported?
>>>>>> Will it be in a 4.7.x release, or are there chances of it being updated
>>>>>> before (and I just download the updated code and recompile the plugin)?
>>>>>> Sorry if this seems off-topic; maybe if there is a more appropriate
>>>>>> mailing list where I should be asking this, someone can please let me
>>>>>> know...
>>>>> Postgres is backwards compatible. Meaning older client libs can access newer
>>>>> servers and vice versa. You might miss a few features that only work between
>>>>> newest server and newest client (it is likely that you wouldn't want to use a
>>>>> wrapper like QtSql if you needed any of those).
>>>>>
>>>>> If you insist on using the newest client lib - just recompile Qt.
>>>>>
>>>>>
>>>>>          Konrad
>>>>>
>>>> Hi,
>>>>
>>>> I suspect that by just recompiling Qt isn't enough. A quick peek at
>>>> the source [0][1] suggests that there's some missing code in order to
>>>> play nice with PostgreSQL 9.x, at least to avoid the warning.
>>>>
>>>> I don't know if there's new functionality and/or schema changes in pg
>>>> 9.x that needs to be reflected in the qpsql driver, though.
>>>>
>>>> regards,
>>>>
>>>> diego
>>>>
>>>> [0] http://qt.gitorious.org/qt/qt/blobs/4.7/src/sql/drivers/psql/qsql_psql.h
>>>> [1] http://qt.gitorious.org/qt/qt/blobs/4.7/src/sql/drivers/psql/qsql_psql.cpp
>>>>
>>>>
>>>> http://qt.gitorious.org/qt/qt/blobs/4.7/src/sql/drivers/psql/qsql_psql.cpp
>>>>
>>>> _______________________________________________
>>>> Qt-interest mailing list
>>>> Qt-interest at trolltech.com
>>>> http://lists.trolltech.com/mailman/listinfo/qt-interest
>>>
>>> _______________________________________________
>>> Qt-interest mailing list
>>> Qt-interest at trolltech.com
>>> http://lists.trolltech.com/mailman/listinfo/qt-interest
>>
>>
>> _______________________________________________
>> Qt-interest mailing list
>> Qt-interest at trolltech.com
>> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest




More information about the Qt-interest-old mailing list