PG::ReadOnlySqlTransaction: ERROR: cannot execute SELECT in a read-only transaction

I wanted to close some old topics by running a query in data explorer and setting the closed field to true by running a query. It appears that I cannot modify the data even with admin rights. Is there any way I can accomplish this without having to individually close such topics one by one ?

It always throws an error : PG::ReadOnlySqlTransaction: ERROR: cannot execute SELECT in a read-only transaction

That’s why it’s called data explorer and not the data modifier :slight_smile:

5 Likes

HI @RGJ,

Thanks for you response :slight_smile:

Is there any way I can accomplish this ?

I haven’t used it yet but if for running direct SQL queries I believe this is what you’re looking for! —

You can do it from the rails console. There are some howto topics for doing mass changes to various settings.

2 Likes