amazon rds - Why can't DataGrip create a PostgreSQL table but PGAdmin can? -


all,

i'm trying run basic create table expression using results of query.

the expression is:

create table burglaries_nhood (   select     n.nbhd_id     , n.nbhd_name     , n.geom     , count(*) count_burglaries   denver.crime c     join denver.neighborhoods n       on st_intersects(c.geom, n.geom)   c.offense_ty 'burg%'   group n.nbhd_id, nbhd_name, n.geom ) 

and error is:

[2017-09-11 19:38:41] [25006] error: cannot execute create table in read-only transaction [2017-09-11 19:38:41] summary: 1 of 1 statements executed, 1 failed in 669ms (298 symbols in file) 

using pgadmin, query executes fine.

the server running in amazon rds postgresql 9.5 instance.

what datagrip cause error show while pgadmin run?

update based on comment below:

running:

select current_setting('transaction_read_only'),pg_is_in_recovery()‌​; 

in pgadmin yields:

current setting, boolean "off";f 

in datagrip yields:

current setting, boolean on, [] 

i'm not sure means...


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -