postgresql/src/include
Robert Haas 96198d94cb Avoid multiple foreign server connections when all use same user mapping.
Previously, postgres_fdw's connection cache was keyed by user OID and
server OID, but this can lead to multiple connections when it's not
really necessary.  In particular, if all relevant users are mapped to
the public user mapping, then their connection options are certainly
the same, so one connection can be used for all of them.

While we're cleaning things up here, drop the "server" argument to
GetConnection(), which isn't really needed.  This saves a few cycles
because callers no longer have to look this up; the function itself
does, but only when establishing a new connection, not when reusing
an existing one.

Ashutosh Bapat, with a few small changes by me.
2016-01-28 12:05:19 -05:00
..
access Add gin_clean_pending_list function to clean up GIN pending list 2016-01-28 12:57:52 +09:00
bootstrap Update copyright for 2016 2016-01-02 13:33:40 -05:00
catalog Add gin_clean_pending_list function to clean up GIN pending list 2016-01-28 12:57:52 +09:00
commands Update copyright for 2016 2016-01-02 13:33:40 -05:00
common Update copyright for 2016 2016-01-02 13:33:40 -05:00
datatype Update copyright for 2016 2016-01-02 13:33:40 -05:00
executor Update copyright for 2016 2016-01-02 13:33:40 -05:00
foreign Avoid multiple foreign server connections when all use same user mapping. 2016-01-28 12:05:19 -05:00
lib Add two HyperLogLog functions 2016-01-19 17:40:15 -03:00
libpq Update copyright for 2016 2016-01-02 13:33:40 -05:00
mb Update copyright for 2016 2016-01-02 13:33:40 -05:00
nodes Add defenses against putting expanded objects into Const nodes. 2016-01-21 12:56:08 -05:00
optimizer Support parallel joins, and make related improvements. 2016-01-20 14:40:26 -05:00
parser Support multi-stage aggregation. 2016-01-20 13:46:50 -05:00
port Fix minor typo in comment 2016-01-15 10:24:37 +01:00
portability Update copyright for 2016 2016-01-02 13:33:40 -05:00
postmaster Update copyright for 2016 2016-01-02 13:33:40 -05:00
regex Update copyright for 2016 2016-01-02 13:33:40 -05:00
replication pgstat: add WAL receiver status view & SRF 2016-01-07 16:21:19 -03:00
rewrite Update copyright for 2016 2016-01-02 13:33:40 -05:00
snowball Update copyright for 2016 2016-01-02 13:33:40 -05:00
storage Refactor headers to split out standby defs 2016-01-20 18:51:34 -08:00
tcop Update copyright for 2016 2016-01-02 13:33:40 -05:00
tsearch Update copyright for 2016 2016-01-02 13:33:40 -05:00
utils Add trigonometric functions that work in degrees. 2016-01-22 15:46:22 -05:00
.gitignore Autoconfiscate selection of 64-bit int type for 64-bit large object API. 2012-10-07 21:52:43 -04:00
c.h Update copyright for 2016 2016-01-02 13:33:40 -05:00
fmgr.h Update copyright for 2016 2016-01-02 13:33:40 -05:00
funcapi.h Update copyright for 2016 2016-01-02 13:33:40 -05:00
getaddrinfo.h Update copyright for 2016 2016-01-02 13:33:40 -05:00
getopt_long.h Update copyright for 2016 2016-01-02 13:33:40 -05:00
Makefile Install lwlocknames.h even in vpath builds. 2015-09-11 16:45:41 -04:00
miscadmin.h Update copyright for 2016 2016-01-02 13:33:40 -05:00
pg_config.h.in Cope with Readline's failure to track SIGWINCH events outside of input. 2015-12-16 16:59:35 -05:00
pg_config.h.win32 Add BSWAP64 macro. 2015-10-08 13:01:36 -04:00
pg_config_ext.h.in Autoconfiscate selection of 64-bit int type for 64-bit large object API. 2012-10-07 21:52:43 -04:00
pg_config_ext.h.win32 Autoconfiscate selection of 64-bit int type for 64-bit large object API. 2012-10-07 21:52:43 -04:00
pg_config_manual.h Update copyright for 2016 2016-01-02 13:33:40 -05:00
pg_getopt.h Update copyright for 2016 2016-01-02 13:33:40 -05:00
pg_trace.h Update copyright for 2016 2016-01-02 13:33:40 -05:00
pgstat.h Update copyright for 2016 2016-01-02 13:33:40 -05:00
pgtar.h Update copyright for 2016 2016-01-02 13:33:40 -05:00
pgtime.h Update copyright for 2016 2016-01-02 13:33:40 -05:00
port.h Update copyright for 2016 2016-01-02 13:33:40 -05:00
postgres.h Update copyright for 2016 2016-01-02 13:33:40 -05:00
postgres_ext.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00
postgres_fe.h Update copyright for 2016 2016-01-02 13:33:40 -05:00
rusagestub.h Update copyright for 2016 2016-01-02 13:33:40 -05:00
windowapi.h Update copyright for 2016 2016-01-02 13:33:40 -05:00