citus/src/backend/distributed
Andres Freund 3dae284bbe Use the current session's username when connecting to worker nodes.
So far we've always used libpq defaults when connecting to workers; bar
special environment variables being set that'll always be the user that
started the server.  That's not desirable because it prevents using
users with fewer privileges.

Thus change the various APIs creating connections to workers to always
use usernames. That means:
1) MultiClientConnect() needs to, optionally, accept a username
2) GetOrEstablishConnection(), including the underlying cache, need to
   use the current user as part of the connection cache key. That way
   connections for separate users are distinct, and we always use one
   with the correct authorization.
3) The task tracker needs to keep track of the username associated with
   a task, so it can use it when establishing connections outside the
   originating session.
2016-04-27 10:00:08 -07:00
..
commands Use the current session's username when connecting to worker nodes. 2016-04-27 10:00:08 -07:00
executor Use the current session's username when connecting to worker nodes. 2016-04-27 10:00:08 -07:00
master Use the current session's username when connecting to worker nodes. 2016-04-27 10:00:08 -07:00
planner Use the current session's username when connecting to worker nodes. 2016-04-27 10:00:08 -07:00
relay Update copyright dates 2016-03-23 17:14:37 -06:00
test Add fast shard pruning path for INSERTs on hash partitioned tables 2016-04-26 11:16:00 +03:00
utils Use the current session's username when connecting to worker nodes. 2016-04-27 10:00:08 -07:00
worker Use the current session's username when connecting to worker nodes. 2016-04-27 10:00:08 -07:00
.gitignore Changed product name to citus 2016-02-15 16:04:31 +02:00
Makefile Fix various build issues 2016-03-11 13:38:47 -07:00
citus.control Changed product name to citus 2016-02-15 16:04:31 +02:00
citus.sql Merge remote-tracking branch 'origin/master' into feature/drop_shards_on_drop_table 2016-02-17 22:52:58 +01:00
shared_library_init.c Add dynamic executor selection 2016-04-21 09:15:33 +03:00