Re: Temporary tables under hot standby

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: Temporary tables under hot standby
Дата
Msg-id CA+TgmoanVMb4EObgdhzPFXnHcvEXJx+nZPJCsD+EOExB1-WVzw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Temporary tables under hot standby  (Noah Misch <noah@leadboat.com>)
Ответы Re: Temporary tables under hot standby  (Simon Riggs <simon@2ndQuadrant.com>)
Re: Temporary tables under hot standby  (Noah Misch <noah@leadboat.com>)
Список pgsql-hackers
On Sun, Apr 29, 2012 at 4:02 PM, Noah Misch <noah@leadboat.com> wrote:
> On Tue, Apr 24, 2012 at 11:55:15PM -0400, Noah Misch wrote:
>> Concerning everyone's favorite topic, how to name the new type of table, I
>> liked Tom's proposal[1] to make CREATE TEMP TABLE retain current behavior and
>> have CREATE GLOBAL TEMP TABLE and/or CREATE LOCAL TEMP TABLE request the new
>> SQL-standard variety.  (I'd vote for using CREATE GLOBAL and retaining CREATE
>> LOCAL for future expansion.)  As he mentions, to get there, we'd ideally start
>> by producing a warning instead of silently accepting GLOBAL as a noise word.
>> Should we put such a warning into 9.2?
>
> Here is the change I'd make.

This is listed on the open items list.

I haven't ever heard anyone propose to redefine CREATE LOCAL TEMP
TABLE to mean anything different than CREATE TEMP TABLE, so I'm
disinclined to warn about that.

I would be more open to warning people about CREATE GLOBAL TEMP TABLE
- frankly, it's pretty wonky that we allow that but treat GLOBAL as a
noise word in this first place.  But I'm a little disinclined to have
the message speculate about what might happen in future versions of
PostgreSQL.  Such predictions don't have a very good track record of
being accurate.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


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

Предыдущее
От: Amit kapila
Дата:
Сообщение: WIP patch for Todo Item : Provide fallback_application_name in contrib/pgbench, oid2name, and dblink
Следующее
От: Simon Riggs
Дата:
Сообщение: Re: Temporary tables under hot standby