Comments (1)
Helpful logs:
2024-01-22 17:25:53.959 CET [74752] LOG: statement: BEGIN TRANSACTION ISOLATION LEVEL READ COMMITTED;SELECT assign_distributed_transaction_id(0, 19, '2024-01-22 17:25:53.951188+01');
2024-01-22 17:25:53.961 CET [74752] LOG: statement: SET citus.enable_metadata_sync TO 'off';create user new_user;;SET citus.enable_metadata_sync TO 'on'
2024-01-22 17:25:53.998 CET [74755] LOG: statement: BEGIN TRANSACTION ISOLATION LEVEL READ COMMITTED;SELECT assign_distributed_transaction_id(0, 19, '2024-01-22 17:25:53.951188+01');
2024-01-22 17:25:54.001 CET [74755] LOG: execute <unnamed>: WITH distributed_object_data(typetext, objnames, objargs, distargumentindex, colocationid, force_delegation) AS (VALUES ('role', ARRAY['new_user']::text[], ARRAY[]::text[], -1, 0, false)) SELECT citus_internal_add_object_metadata(typetext, objnames, objargs, distargumentindex::int, colocationid::int, force_delegation::bool) FROM distributed_object_data;
The CREATE USER
is executed on a different connection than the citus_internal_add_object_metadata
call. This only happens when using a non-superuser to create the new user. So, I think the reason for this is that we fallback to the regular_user
when using running the command on other workers using execute_command_on_remote_nodes_as_user
, but I guess we still execute citus_internal_add_object_metadata
on a superuser connection.
I see two options:
- we fallback to the regular user for our call to
citus_internal_add_object_metadata
- we run
mark_object_distributed
on the remote nodes too, instead of usingcitus_internal_add_object_metadata
.
I'd prefer 1. since it's always good to do as few things as possible as superuser. But if that results in hard to understand code or something, I think 2. would be okay too.
from citus.
Related Issues (20)
- Does citus support pgvector extension?
- how to cancel create_reference_table()? HOT 1
- Deparse DDL commands instead of directly executing queryString on main-db HOT 2
- Enable citus.enable_create_database_propagation by default
- Error in master_disable_node/citus_disable_node HOT 2
- Documentation about upgrading HOT 1
- how to forcefully drop/remove a node with citus.
- ERROR: there is a shard placement in node group 2 but there are no nodes in that group HOT 1
- Citus Row Based Distribution
- Problems trying to rebalance cluster on removal of worker node.
- Distributed deadlock after issuing a simple `UPDATE` statement HOT 13
- Problem with rebalancing "Could not fetch disk stats for node" HOT 2
- ERROR "fe_sendauth: no password supplied" when trying to query by custom role
- ERROR "fe_sendauth: no password supplied" when trying to use custom role HOT 1
- Improve non-transactional metadata-sync experience considering clusters with large number of shards HOT 2
- Grantor propagation support HOT 2
- Question: is there a way to backup/restore data from a single shard?
- Data loss after changing replication factor HOT 3
- Range Partition HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from citus.