diff options
author | Michael Paquier | 2012-10-03 06:27:01 +0000 |
---|---|---|
committer | Michael Paquier | 2012-10-03 06:27:01 +0000 |
commit | 42ddf37ca13aa27c1c8e20fabaedf3d943d8dabb (patch) | |
tree | 9423be9a9fa11229fcfb0b1a0d9f233a60158b12 /src/backend/tcop/postgres.c | |
parent | 9d3446d1829bdee8ae767936cb20f339f16f5655 (diff) |
Allow primary node data modification with ALTER NODE
When trying to use ALTER NODE on a primary node, node manager was complaining
about the fact that there cannot be two primary nodes even if the data altered
was something else like host IP or port number.
The origin of the error was the error handling of primary node inside node
manager. For a newly-created node, it is checked with this new node is primary
and an error is returned if there is already a node defined. For an altered
node, it is checked if a node different than the one altered is primary and
if yes an error is returned. This check was originally moved inside
check_node_options but this was a bad bet as it decentralized the primary
node error check which is really different for new and altered nodes.
Diffstat (limited to 'src/backend/tcop/postgres.c')
0 files changed, 0 insertions, 0 deletions