PG::ReadOnlySqlTransaction: FEHLER: SELECT kann in einer schreibgeschützten Transaktion nicht ausgeführt werden

Ich wollte einige alte Themen schließen, indem ich eine Abfrage im Data Explorer ausführte und das Feld „closed" per Abfrage auf „true" setzte. Es scheint jedoch, dass ich die Daten nicht ändern kann, selbst mit Admin-Rechten. Gibt es eine Möglichkeit, dies zu erledigen, ohne die Themen einzeln schließen zu müssen?

Es wird stets ein Fehler geworfen: 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 „Gefällt mir“

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 „Gefällt mir“