pg.ddx.io pgsql-odbc@postgresql.org mailing list archive
help / color / mirror / Atom feedConnections and threading problems
2+ messages / 2 participants
[nested] [flat]
* Connections and threading problems
@ 2004-03-04 12:39 Stergios Zissakis <szis@intranet.gr>
2004-03-10 12:38 ` Re: Connections and threading problems Richard Huxton <dev@archonet.com>
0 siblings, 1 reply; 2+ messages in thread
From: Stergios Zissakis @ 2004-03-04 12:39 UTC (permalink / raw)
To: pgsql-odbc; +Cc: Kostas Lykiardopoulos <klyk@intranet.gr>; Dimitris Pantermalis <dpant@intranet.gr>
Hi there,
I have set up PGSQL 7.4 and unixODBC-2.2.8 on Solaris 8 (with the 113261-02
patch applied).
I'm using OTL 4 and a multi-threaded test program.
I encountered the following problems.
1) I cannot get more than 5 threads to connect to the databse at the same
time.
See the attached cons.log
2) When my program runs (with 5 threads) the threads seem to be serialized
rather than compete with each other.
See the attached threads.log
Please find attached the following files:
odbc.ini
odbcinst.ini
PGSQL config files
show_all.txt #the output of "show all" in psql
insert.cc #my source
Thanks in advance.
Stergios
Attachments:
files.tar.gz (application/octet-stream, 7.1K) download
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Connections and threading problems
2004-03-04 12:39 Connections and threading problems Stergios Zissakis <szis@intranet.gr>
@ 2004-03-10 12:38 ` Richard Huxton <dev@archonet.com>
0 siblings, 0 replies; 2+ messages in thread
From: Richard Huxton @ 2004-03-10 12:38 UTC (permalink / raw)
To: Stergios Zissakis <szis@intranet.gr>; pgsql-odbc; +Cc: Kostas Lykiardopoulos <klyk@intranet.gr>; Dimitris Pantermalis <dpant@intranet.gr>
On Thursday 04 March 2004 12:39, Stergios Zissakis wrote:
> Hi there,
>
> I have set up PGSQL 7.4 and unixODBC-2.2.8 on Solaris 8 (with the 113261-02
> patch applied).
> I'm using OTL 4 and a multi-threaded test program.
> I encountered the following problems.
> 1) I cannot get more than 5 threads to connect to the databse at the same
> time.
Your log file says you've reached your maximum number of connections.
2004-03-04 14:24:09 LOG: connection authorized: user=szis database=test
2004-03-04 14:24:09 FATAL: sorry, too many clients already
You'll want to increase max_connections in your postgresql.conf. Make sure PG
re-reads the file.
You also *do not* want to leave enable_seqscan set to false unless you are
testing.
--
Richard Huxton
Archonet Ltd
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2004-03-10 12:38 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-03-04 12:39 Connections and threading problems Stergios Zissakis <szis@intranet.gr>
2004-03-10 12:38 ` Richard Huxton <dev@archonet.com>
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