<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>18 Apr 2020 14:11:58 Z</lastBuildDate><pubDate>17 Apr 2020 06:07:40 Z</pubDate><description>Hi there,&#13;
&#13;
I'm using WD to connect to Postgres db.&#13;
I noticed that each new SQLEXEC in new window always created new connection with new client port.&#13;
This is strange because I called SQLCONNECT only ONCE at the beginning thus I expect WD to keep using same connection.&#13;
&#13;
I found out about this when I checked using PG_STAT_ACTIVITY in postgres and saw many connections from same user and app. And this has resulted in consuming the available connection in database thus reducing total number users can connect.&#13;
&#13;
Any chance that I can change this in WD programming to tell WD to not open new connection once SQLCONNECT is established ?&#13;
&#13;
Many thanks in advance for your valuable advices.&#13;
&#13;
Adiy</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67764-why-sqlexec-always-create-new-connection-postgres/read.awp</link><title>Why SQLEXEC always create NEW connection in POSTGRES ?</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>Mygocoogs</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67764-why-sqlexec-always-create-new-connection-postgres-67768/read.awp</comments><pubDate>18 Apr 2020 14:11:58 Z</pubDate><description>Hi,&#13;
&#13;
Thanks for the advice. &#13;
I checked SQLCLOSE() but it was not the cause.&#13;
&#13;
Apparently the cause is the setting of Window …</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67764-why-sqlexec-always-create-new-connection-postgres-67768/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67764-why-sqlexec-always-create-new-connection-postgres-67768/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67764-why-sqlexec-always-create-new-connection-postgres/read.awp">Why SQLEXEC always create NEW connection in POSTGRES ?</source><title>Re: Why SQLEXEC always create NEW connection in POSTGRES ?</title></item><item><author>WINDEVCOL</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67764-why-sqlexec-always-create-new-connection-postgres-67766/read.awp</comments><pubDate>17 Apr 2020 18:50:42 Z</pubDate><description>Are you using SQLClose after you finish each query ?</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67764-why-sqlexec-always-create-new-connection-postgres-67766/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67764-why-sqlexec-always-create-new-connection-postgres-67766/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67764-why-sqlexec-always-create-new-connection-postgres/read.awp">Why SQLEXEC always create NEW connection in POSTGRES ?</source><title>Re: Why SQLEXEC always create NEW connection in POSTGRES ?</title></item></channel></rss>
