pg.ddx.io pgsql-odbc@postgresql.org mailing list archive
help / color / mirror / Atom feedODBC parameters
8+ messages / 6 participants
[nested] [flat]
* ODBC parameters
@ 2002-03-06 00:48 Jason <pg@newhonest.com>
2002-03-06 16:23 ` Re: ODBC parameters Hiroshi Inoue <Inoue@tpf.co.jp>
0 siblings, 1 reply; 8+ messages in thread
From: Jason @ 2002-03-06 00:48 UTC (permalink / raw)
To: pgsql-odbc
Hi,
What is "USEDECLAREFETCH" in ODBC? What will it affect? Where can I find info about those parameters?
==
====
Best Regards
Jason Kwok
==============
====
---
Virus Free
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.330 / Virus Database: 184 - Release Date: 2002/2/28
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: ODBC parameters
2002-03-06 00:48 ODBC parameters Jason <pg@newhonest.com>
@ 2002-03-06 16:23 ` Hiroshi Inoue <Inoue@tpf.co.jp>
0 siblings, 0 replies; 8+ messages in thread
From: Hiroshi Inoue @ 2002-03-06 16:23 UTC (permalink / raw)
To: Jason <pg@newhonest.com>; +Cc: pgsql-odbc
Please look at http://odbc.postgresql.org/.
-----Original Message-----
From: Jason
Hi,
What is "USEDECLAREFETCH" in ODBC? What will it affect? Where can I
find info about those parameters?
==
====
Best Regards
Jason Kwok
^ permalink raw reply [nested|flat] 8+ messages in thread
* odbc parameters
@ 2007-07-11 12:15 Zlatko Matic <zlatko.matic1@sb.t-com.hr>
2007-07-11 12:31 ` Re: odbc parameters A. Kretschmer <andreas.kretschmer@schollglas.com>
2007-07-11 12:34 ` Re: odbc parameters Ludek Finstrle <luf@pzkagis.cz>
2007-07-11 14:22 ` Re: odbc parameters David Gardner <david@gardnerit.net>
0 siblings, 3 replies; 8+ messages in thread
From: Zlatko Matic @ 2007-07-11 12:15 UTC (permalink / raw)
To: pgsql-odbc; Postgres General <pgsql-general@postgresql.org>
Hello,
I use MS Access for data import. Access imports csv file, make some
calculation and transffers data to PostgreSQL.
Unfortunately, it takes a lot of time to transfer data to PostgreSQL.
My odbc settings are following:
[ODBC]
DRIVER=PostgreSQL Unicode
UID=postgres
XaOpt=1
LowerCaseIdentifier=0
UseServerSidePrepare=1
ByteaAsLongVarBinary=0
BI=0
TrueIsMinus1=0
DisallowPremature=1
UpdatableCursors=1
LFConversion=1
ExtraSysTablePrefixes=dd_
CancelAsFreeStmt=0
Parse=1
BoolsAsChar=0
UnknownsAsLongVarchar=0
TextAsLongVarchar=1
UseDeclareFetch=0
Ksqo=1
Optimizer=1
CommLog=0
Debug=0
MaxLongVarcharSize=8190
MaxVarcharSize=255
UnknownSizes=0
Socket=4096
Fetch=100
ConnSettings=
ShowSystemTables=0
RowVersioning=1
ShowOidColumn=0
FakeOidIndex=0
Protocol=7.4-1
ReadOnly=0
SSLmode=allow
PORT=5432
SERVER=localhost
DATABASE=PLANINGZ
Could you suggest what parameters values would yield best performance for
batch import to PostgreSQL?
Thanks.
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: odbc parameters
2007-07-11 12:15 odbc parameters Zlatko Matic <zlatko.matic1@sb.t-com.hr>
@ 2007-07-11 12:31 ` A. Kretschmer <andreas.kretschmer@schollglas.com>
2007-07-11 12:55 ` Re: odbc parameters Zlatko Matic <zlatko.matic1@sb.t-com.hr>
2 siblings, 1 reply; 8+ messages in thread
From: A. Kretschmer @ 2007-07-11 12:31 UTC (permalink / raw)
To: pgsql-general@postgresql.org
am Wed, dem 11.07.2007, um 14:15:02 +0200 mailte Zlatko Matic folgendes:
> Hello,
please don't hijack other threads. If you only change the subject for a
new question, your mail will be sorted completely wrong.
(within modern email-clients such thunderbird or mutt)
>
> I use MS Access for data import. Access imports csv file, make some
> calculation and transffers data to PostgreSQL.
Import the csv-file directly in postgresql and make the calculations
within PG?
Andreas
--
Andreas Kretschmer
Kontakt: Heynitz: 035242/47150, D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID: 0x3FFF606C, privat 0x7F4584DA http://wwwkeys.de.pgp.net
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: odbc parameters
2007-07-11 12:15 odbc parameters Zlatko Matic <zlatko.matic1@sb.t-com.hr>
2007-07-11 12:31 ` Re: odbc parameters A. Kretschmer <andreas.kretschmer@schollglas.com>
@ 2007-07-11 12:55 ` Zlatko Matic <zlatko.matic1@sb.t-com.hr>
2007-07-11 13:46 ` Re: odbc parameters A. Kretschmer <andreas.kretschmer@schollglas.com>
0 siblings, 1 reply; 8+ messages in thread
From: Zlatko Matic @ 2007-07-11 12:55 UTC (permalink / raw)
To: A. Kretschmer <andreas.kretschmer@schollglas.com>; pgsql-general@postgresql.org
I have already tried COPY.
But, it has problems with type castings.
For example, COPY operation fails because PostgreSQL can't copy value
7.844,000 into NUMERIC field...
Regards,
Zlatko
----- Original Message -----
From: "A. Kretschmer" <andreas.kretschmer@schollglas.com>
To: <pgsql-general@postgresql.org>
Sent: Wednesday, July 11, 2007 2:31 PM
Subject: Re: [GENERAL] odbc parameters
> am Wed, dem 11.07.2007, um 14:15:02 +0200 mailte Zlatko Matic folgendes:
>> Hello,
>
> please don't hijack other threads. If you only change the subject for a
> new question, your mail will be sorted completely wrong.
> (within modern email-clients such thunderbird or mutt)
>
>>
>> I use MS Access for data import. Access imports csv file, make some
>> calculation and transffers data to PostgreSQL.
>
> Import the csv-file directly in postgresql and make the calculations
> within PG?
>
> Andreas
> --
> Andreas Kretschmer
> Kontakt: Heynitz: 035242/47150, D1: 0160/7141639 (mehr: -> Header)
> GnuPG-ID: 0x3FFF606C, privat 0x7F4584DA http://wwwkeys.de.pgp.net
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: Don't 'kill -9' the postmaster
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: odbc parameters
2007-07-11 12:15 odbc parameters Zlatko Matic <zlatko.matic1@sb.t-com.hr>
2007-07-11 12:31 ` Re: odbc parameters A. Kretschmer <andreas.kretschmer@schollglas.com>
2007-07-11 12:55 ` Re: odbc parameters Zlatko Matic <zlatko.matic1@sb.t-com.hr>
@ 2007-07-11 13:46 ` A. Kretschmer <andreas.kretschmer@schollglas.com>
0 siblings, 0 replies; 8+ messages in thread
From: A. Kretschmer @ 2007-07-11 13:46 UTC (permalink / raw)
To: pgsql-general@postgresql.org
am Wed, dem 11.07.2007, um 14:55:28 +0200 mailte Zlatko Matic folgendes:
> I have already tried COPY.
> But, it has problems with type castings.
> For example, COPY operation fails because PostgreSQL can't copy value
> 7.844,000 into NUMERIC field...
Either copy such values into a temp. table with text-columns and work
with arbitrary sql-funktions (you can convert it to numeric with, for
instance, regexp_replace('7.844,000',',.*$', '')::numeric) to fill the
destination table with the values or work before the COPY with
text-lools like sed, awk, perl, ...
Andreas
--
Andreas Kretschmer
Kontakt: Heynitz: 035242/47150, D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID: 0x3FFF606C, privat 0x7F4584DA http://wwwkeys.de.pgp.net
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: odbc parameters
2007-07-11 12:15 odbc parameters Zlatko Matic <zlatko.matic1@sb.t-com.hr>
@ 2007-07-11 12:34 ` Ludek Finstrle <luf@pzkagis.cz>
2 siblings, 0 replies; 8+ messages in thread
From: Ludek Finstrle @ 2007-07-11 12:34 UTC (permalink / raw)
To: Zlatko Matic <zlatko.matic1@sb.t-com.hr>; +Cc: pgsql-odbc
Hello,
> I use MS Access for data import. Access imports csv file, make some
> calculation and transffers data to PostgreSQL.
> Unfortunately, it takes a lot of time to transfer data to PostgreSQL.
I don't know how you transfer the data. So it's hard to answer.
> UpdatableCursors=1
Do you need this?
> LFConversion=1
Are you sure you want CR/LF conversion?
> Parse=1
Do you need parse statements? I think you don't need one of
UpdatableCursors or Parse at least.
> Fetch=100
You don't need specify this while you have UseDeclareFetch = 0
> RowVersioning=1
Do you need RowVersioning?
> Could you suggest what parameters values would yield best performance for
> batch import to PostgreSQL?
Maybe this maybe someone suggest anothers. Let's experiment a little bit
yourself ;o)
Luf
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: odbc parameters
2007-07-11 12:15 odbc parameters Zlatko Matic <zlatko.matic1@sb.t-com.hr>
@ 2007-07-11 14:22 ` David Gardner <david@gardnerit.net>
2 siblings, 0 replies; 8+ messages in thread
From: David Gardner @ 2007-07-11 14:22 UTC (permalink / raw)
To: pgsql-odbc
Could you post what you are doing in Access? Are you just copy/pasting
from a local table to a linked odbc table? Or are you executing insert
statements in a VBA for loop, if so please post the VBA code?
There are some settings in the ODBC driver that can effect performance,
but the types of SQL statements you are executing often have a much
greater effect on overall performance.
Also if you could turn on the logging in the ODBC driver, often Access
is executing queries on your behalf that you may be unaware of it.
Zlatko Matic wrote:
> Hello,
>
> I use MS Access for data import. Access imports csv file, make some
> calculation and transffers data to PostgreSQL.
> Unfortunately, it takes a lot of time to transfer data to PostgreSQL.
> My odbc settings are following:
>
>
--
David Gardner
^ permalink raw reply [nested|flat] 8+ messages in thread
end of thread, other threads:[~2007-07-11 14:22 UTC | newest]
Thread overview: 8+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-03-06 00:48 ODBC parameters Jason <pg@newhonest.com>
2002-03-06 16:23 ` Hiroshi Inoue <Inoue@tpf.co.jp>
2007-07-11 12:15 odbc parameters Zlatko Matic <zlatko.matic1@sb.t-com.hr>
2007-07-11 12:31 ` Re: odbc parameters A. Kretschmer <andreas.kretschmer@schollglas.com>
2007-07-11 12:55 ` Re: odbc parameters Zlatko Matic <zlatko.matic1@sb.t-com.hr>
2007-07-11 13:46 ` Re: odbc parameters A. Kretschmer <andreas.kretschmer@schollglas.com>
2007-07-11 12:34 ` Re: odbc parameters Ludek Finstrle <luf@pzkagis.cz>
2007-07-11 14:22 ` Re: odbc parameters David Gardner <david@gardnerit.net>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox