X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 16C3B52956 for ; Wed, 13 Apr 2005 13:32:40 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 90953-09 for ; Wed, 13 Apr 2005 16:32:36 +0000 (GMT) Received: from web20828.mail.yahoo.com (web20828.mail.yahoo.com [216.136.227.167]) by svr1.postgresql.org (Postfix) with SMTP id 8405253E01 for ; Wed, 13 Apr 2005 13:32:35 -0300 (ADT) Received: (qmail 30998 invoked by uid 60001); 13 Apr 2005 16:32:35 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=fp8sLLAOw8WQfxbBajQngZgNnr/NKvqHhl8+rGFdlXZbXTYSNJQ7K5jh4uVgoZwEXIDfZ1zObwTRgkFoPBc1ElJklw5AW+0voueKS+g49rn2ieqTyRkvtjmc304ARYwcKvFeJ9fadN5jgjFb97MMT52Nfuikw7tJV5oEufmJPlE= ; Message-ID: <20050413163235.30996.qmail@web20828.mail.yahoo.com> Received: from [24.248.12.141] by web20828.mail.yahoo.com via HTTP; Wed, 13 Apr 2005 09:32:35 PDT Date: Wed, 13 Apr 2005 09:32:35 -0700 (PDT) From: Jeff Eckermann Subject: Re: How can I configure the postgresql odbc to return 1 row at a time? To: Jerry Lam , pgsql-odbc@postgresql.org In-Reply-To: 6667 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.342 tagged_above=0 required=5 tests=AWL, DNS_FROM_RFC_ABUSE X-Spam-Level: X-Archive-Number: 200504/32 X-Sequence-Number: 5191 --- Jerry Lam wrote: > Thanks for the reply. I wonder if there is any > documentation for all the possible configurations in > posgresql odbc? I assume that you have seen this (incomplete) coverage: http://gborg.postgresql.org/project/psqlodbc/genpage.php?doc-config I am not aware of any other documentation, apart from the source code itself. Most of the configuration options are obscure, and I would say little used. I generally find good results running with default settings, or with minimal changes. Nearly all of the list discussion on these configuration options relates to a very small number of them. I would suggest that you post any questions you may have about specific options, and see if someone can help you. > Here is the list: > > #define INI_DSN DBMS_NAME > > #define INI_KDESC "Description" /* Data source > description */ > #define INI_SERVER "Servername" /* Name of Server > running PostgreSQL */ > #define INI_PORT "Port" /* Port on which the > Postmaster is listening */ > #define INI_DATABASE "Database" /* Database Name > */ > #define INI_USER "Username" /* Default User Name > */ > #define INI_PASSWORD "Password" /* Default > Password */ > #define INI_DEBUG "Debug" /* Debug flag */ > #define INI_FETCH "Fetch" /* Fetch Max Count */ > #define INI_SOCKET "Socket" /* Socket buffer size > */ > #define INI_READONLY "ReadOnly" /* Database is > read only */ > #define INI_COMMLOG "CommLog" /* Communication to > backend logging */ > #define INI_PROTOCOL "Protocol" /* What protocol > (6.2) */ > #define INI_OPTIMIZER "Optimizer" /* Use backend > genetic optimizer */ > #define INI_KSQO "Ksqo" /* Keyset query > optimization */ > #define INI_CONNSETTINGS "ConnSettings" /* Anything > to send to backend on successful connection */ > #define INI_UNIQUEINDEX "UniqueIndex" /* Recognize > unique indexes */ > #define INI_UNKNOWNSIZES "UnknownSizes" /* How to > handle unknown result set sizes */ > #define INI_CANCELASFREESTMT "CancelAsFreeStmt" > #define INI_USEDECLAREFETCH "UseDeclareFetch" /* > Use Declare/Fetch cursors */ > > /* More ini stuff */ > #define INI_TEXTASLONGVARCHAR "TextAsLongVarchar" > #define INI_UNKNOWNSASLONGVARCHAR > "UnknownsAsLongVarchar" > #define INI_BOOLSASCHAR "BoolsAsChar" > #define INI_MAXVARCHARSIZE "MaxVarcharSize" > #define INI_MAXLONGVARCHARSIZE "MaxLongVarcharSize" > > #define INI_FAKEOIDINDEX "FakeOidIndex" > #define INI_SHOWOIDCOLUMN "ShowOidColumn" > #define INI_ROWVERSIONING "RowVersioning" > #define INI_SHOWSYSTEMTABLES "ShowSystemTables" > #define INI_LIE "Lie" > #define INI_PARSE "Parse" > #define INI_EXTRASYSTABLEPREFIXES > "ExtraSysTablePrefixes" > > #define INI_TRANSLATIONNAME "TranslationName" > #define INI_TRANSLATIONDLL "TranslationDLL" > #define INI_TRANSLATIONOPTION "TranslationOption" > #define INI_DISALLOWPREMATURE "DisallowPremature" > #define INI_UPDATABLECURSORS "UpdatableCursors" > #define INI_LFCONVERSION "LFConversion" > #define INI_TRUEISMINUS1 "TrueIsMinus1" > #define INI_INT8AS "BI" > #define INI_BYTEAASLONGVARBINARY > "ByteaAsLongVarBinary" > #define INI_USESERVERSIDEPREPARE > "UseServerSidePrepare" > #define INI_LOWERCASEIDENTIFIER > "LowerCaseIdentifier" > > Some of them have description (but too short to > understand clearly what it will do) and some of them > have no description at all... > > Please help, > > Jerry > > -----Original Message----- > From: Jeff Eckermann > [mailto:jeff_eckermann@yahoo.com] > Sent: Monday, April 11, 2005 11:12 AM > To: Jerry Lam; pgsql-odbc@postgresql.org > Subject: Re: [ODBC] How can I configure the > postgresql odbc to return 1 > row at a time? > > > --- Jerry Lam wrote: > > Hi, > > > > Is it possible to ask postgresql odbc driver to > > fetch the resulsets from the table one at a time > > instead of fetching all millions rows into memory? > > Perhaps setting the "Use declare/fetch" driver > option > to true will help you. This will cause a server > side > cursor to be used, which will return the rows in > blocks. What controls the size of the blocks, I > have > no idea; I've never messed with that. > > > > > Thank you, > > > > Jerry > > > > ---------------------------(end of > > broadcast)--------------------------- > > TIP 5: Have you checked our extensive FAQ? > > > > http://www.postgresql.org/docs/faq > > > > > > __________________________________ > Do you Yahoo!? > Yahoo! Small Business - Try our new resources site! > http://smallbusiness.yahoo.com/resources/ > __________________________________ Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/