niksa 0da34e840e Fix server detach/delete corner cases
Prevent server delete if the server contains data, unless user
specifies `force => true`. In case the server is the only data
replica, we don't allow delete/detach unless table/chunks are dropped.
The idea is to have the same semantics for delete as for detach since
delete actually calls detach

We also try to update pg_foreign_table when we delete server if there
is another server containing the same chunk.

An internal function is added to enable updating foreign table server
which might be useful in some cases since foreign table server is
considered a default server for that particular chunk.

Since this command needs to work even if the server we're trying to
remove is non responsive, we're not removing any data on the remote
data node.
2020-05-27 17:31:09 +02:00
..
2020-05-18 20:16:03 -04:00
2020-04-14 23:12:15 +02:00
2020-04-20 14:54:06 +02:00
2020-04-14 23:12:15 +02:00
2020-05-27 17:31:09 +02:00
2020-05-27 17:31:09 +02:00
2020-05-27 17:31:09 +02:00
2020-05-20 14:39:54 +02:00
2020-05-27 17:31:09 +02:00
2020-05-27 17:31:09 +02:00
2019-02-05 16:55:16 -05:00
2019-02-05 16:55:16 -05:00
2019-02-05 16:55:16 -05:00
2019-10-29 19:02:58 -04:00
2019-02-05 16:55:16 -05:00
2019-02-05 16:55:16 -05:00
2020-05-27 17:31:09 +02:00
2019-02-05 16:55:16 -05:00
2019-02-05 16:55:16 -05:00
2020-05-18 20:16:03 -04:00
2020-04-14 23:12:15 +02:00
2020-05-27 17:31:09 +02:00
2020-05-27 17:31:09 +02:00
2020-04-14 23:12:15 +02:00
2019-02-05 16:55:16 -05:00
2019-02-05 16:55:16 -05:00
2020-04-14 23:12:15 +02:00
2020-04-14 23:12:15 +02:00
2020-04-14 23:12:15 +02:00
2020-05-18 20:16:03 -04:00
2020-04-14 23:12:15 +02:00
2020-04-14 23:12:15 +02:00
2020-05-18 20:16:03 -04:00
2020-05-18 20:16:03 -04:00
2019-02-05 16:55:16 -05:00
2019-04-15 21:44:10 +02:00
2020-04-14 23:12:15 +02:00
2019-04-26 13:08:00 -04:00
2019-04-26 13:08:00 -04:00
2020-04-28 13:49:14 +02:00
2020-05-27 17:31:09 +02:00
2019-02-05 16:55:16 -05:00
2019-02-05 16:55:16 -05:00