Re: Create temporary table in replica instances issues

Поиск
Список
Период
Сортировка
От Guillaume Lelarge
Тема Re: Create temporary table in replica instances issues
Дата
Msg-id CAECtzeU_reFNuuj9_AYDwCUvw6wSa+YXnt6PW3-zr=AC855LAw@mail.gmail.com
обсуждение исходный текст
Ответ на Create temporary table in replica instances issues  (Saravanan Shanmugam <saravanantvr1984@gmail.com>)
Список pgsql-bugs
Hi,

Le jeu. 28 juil. 2022 à 11:12, Saravanan Shanmugam <saravanantvr1984@gmail.com> a écrit :
Hello, 

We have AWS RDS with Primary and replica node to balance IO RW for application performance, 

In such cases we will be livergaing all read related queries to replica nodes, 
sometimes we will create temp tables not physical tables and do some complicated queries .  

PG SQL replica node throws Create table not allowed in reader-instance 
But this not Physical table its temporary table, in MS-SQL and MYSQL are supporting, Why Pgsql is not supporting?? 


There's still metadata to write in catalogs (table definition mostly, such as table metadata, columns metadata, etc). These are writes on permanent tables, and those aren't allowed on a replica node.

Please do we have this option to enable or is this a bug??


No option, and not a bug.


--
Guillaume.

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Tushar Takate
Дата:
Сообщение: xmin of slot is not moving | hot standby feedback sending old xmin.
Следующее
От: Andres Freund
Дата:
Сообщение: Re: xmin of slot is not moving | hot standby feedback sending old xmin.