<p dir="auto">Adds a "context" parameter to database connection setup describing what this connection is for. This is something like "middle.query" or "out.pgsql". It will be added to the application name, so querying pg_stat_activity will show it like "osm2pgsql.middle.query/C2" etc.</p>
<hr>
<h4>You can view, comment on, or merge this pull request online at:</h4>
<p> <a href='https://github.com/osm2pgsql-dev/osm2pgsql/pull/2130'>https://github.com/osm2pgsql-dev/osm2pgsql/pull/2130</a></p>
<h4>Commit Summary</h4>
<ul>
<li><a href="https://github.com/osm2pgsql-dev/osm2pgsql/pull/2130/commits/8240fa2b0ce90eafc471acd439d03426d5fb247d" class="commit-link">8240fa2</a> Use different application names for db connection to show context</li>
</ul>
<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/osm2pgsql-dev/osm2pgsql/pull/2130/files">13 files</a>)</p>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/osm2pgsql-dev/osm2pgsql/pull/2130/files#diff-037c31cfecf376a564eabe2b2ced673d2d0173405b58ce85a83fdc51a4f348c3">src/db-copy.cpp</a>
(2)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/osm2pgsql-dev/osm2pgsql/pull/2130/files#diff-abc346816b069a6261b82d50b870e16e220672270b50ee95cf6994a438b8c67f">src/expire-output.cpp</a>
(2)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/osm2pgsql-dev/osm2pgsql/pull/2130/files#diff-1805c9b742d8d030a8d1eb13c8ef3f89183c40f71eecb646e591c7cd0c1d2b24">src/flex-table.cpp</a>
(3)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/osm2pgsql-dev/osm2pgsql/pull/2130/files#diff-af990b4913ef709327b65c38b7aa4719b2caaed25de91ebd7496daf528ac8386">src/gen/osm2pgsql-gen.cpp</a>
(10)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/osm2pgsql-dev/osm2pgsql/pull/2130/files#diff-6237ae72dac71b4b88a541860afdb44f23a47ae252f8236a4522eacd2d6a766f">src/middle-pgsql.cpp</a>
(6)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/osm2pgsql-dev/osm2pgsql/pull/2130/files#diff-1c22a1a384d93c9c91ca44a67a64253a976fa3dc112e87596046baf9007abbf6">src/osm2pgsql.cpp</a>
(2)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/osm2pgsql-dev/osm2pgsql/pull/2130/files#diff-becb223d44aa5a6bb197bf494c1e7e66308350843d927aed3363ce76a1945004">src/output-flex.cpp</a>
(2)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/osm2pgsql-dev/osm2pgsql/pull/2130/files#diff-5677b4d2d4e6b403a932e21ca5988c733e2ffa2200211cecef105f81250dcf18">src/output-gazetteer.cpp</a>
(2)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/osm2pgsql-dev/osm2pgsql/pull/2130/files#diff-f90c5943abe16bc4978288b3ea8c56947a7661461653579b9c0b44b1c342ed92">src/pgsql.cpp</a>
(18)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/osm2pgsql-dev/osm2pgsql/pull/2130/files#diff-17686980e039664210e9676e22bb784a1255b8df63eb9794bd602600da05fe59">src/pgsql.hpp</a>
(3)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/osm2pgsql-dev/osm2pgsql/pull/2130/files#diff-33f6f98ac38892c5010da188eedbbf64d4647116b43cfcf22a6522d2195dc5de">src/properties.cpp</a>
(6)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/osm2pgsql-dev/osm2pgsql/pull/2130/files#diff-b88247c729c0441b6bab3e9885aaadb052278b7e495af54f9f9f5cb0b852990a">src/table.cpp</a>
(2)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/osm2pgsql-dev/osm2pgsql/pull/2130/files#diff-d72db9decb2e2638e71b3670b87f7680ac4329d6748e086ef1775cbe09e3d657">tests/common-pg.hpp</a>
(2)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/osm2pgsql-dev/osm2pgsql/pull/2130.patch'>https://github.com/osm2pgsql-dev/osm2pgsql/pull/2130.patch</a></li>
<li><a href='https://github.com/osm2pgsql-dev/osm2pgsql/pull/2130.diff'>https://github.com/osm2pgsql-dev/osm2pgsql/pull/2130.diff</a></li>
</ul>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/osm2pgsql-dev/osm2pgsql/pull/2130">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AA6353QM2LQDV5SYYT4CSBDYRS3NRAVCNFSM6AAAAABCWNDSQKVHI2DSMVQWIX3LMV43ASLTON2WKOZSGEYTINJWGIYTEMQ">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AA6353SAWFXUWEVFXZT6DYLYRS3NRA5CNFSM6AAAAABCWNDSQKWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHH4CNIJI.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><osm2pgsql-dev/osm2pgsql/pull/2130</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/osm2pgsql-dev/osm2pgsql/pull/2130",
"url": "https://github.com/osm2pgsql-dev/osm2pgsql/pull/2130",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>