-
Overview
As mentioned above, the above error occurred when creating a database in a postgresql docker container.
-
Solution
Normally the most plausible reasons for this kinde of error are:
- trying create statements on a read-only replica (the entire instance is read-only)
<username>
hasdefault_transaction_read_only
set to NO- the database has
default_transaction_read_only
set to NO
My situation is the first one. So, create a new container.
-
Reference
(20210316已解决)postgresql cannot execute CREATE TABLE in a read-only transation
Guess you like
Origin blog.csdn.net/The_Time_Runner/article/details/115261256
Recommended
Ranking