Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
3d1a1eed
Commit
3d1a1eed
authored
Feb 06, 2009
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document ways to avoid libpq WSACleanup() overhead on Windows.
Andrew Chernow
parent
8c78f8e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletion
+16
-1
doc/src/sgml/libpq.sgml
doc/src/sgml/libpq.sgml
+16
-1
No files found.
doc/src/sgml/libpq.sgml
View file @
3d1a1eed
<!-- $PostgreSQL: pgsql/doc/src/sgml/libpq.sgml,v 1.27
5 2009/01/10 20:14:30
momjian Exp $ -->
<!-- $PostgreSQL: pgsql/doc/src/sgml/libpq.sgml,v 1.27
6 2009/02/06 18:18:54
momjian Exp $ -->
<chapter id="libpq">
<title><application>libpq</application> - C Library</title>
...
...
@@ -63,6 +63,21 @@
The <function>PQstatus</> function should be called to check
whether a connection was successfully made before queries are sent
via the connection object.
<note>
<para>
On Windows, there is a way to improve performance if a single
database connection is repeated started and shutdown. Internally,
libpq calls WSAStartup() and WSACleanup() for connection startup
and shutdown, respectively. WSAStartup() increments an internal
Windows library reference count which is decremented by WSACleanup().
When the reference count is just one, calling WSACleanup() frees
all resources and all DLLs are unloaded. This is an expensive
operation. To avoid this, an application can manually call
WSAStartup() so resources will not be freed when the last database
connection is closed.
</para>
</note>
<variablelist>
<varlistentry>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment