Re: Portal->commandTag as an enum

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Portal->commandTag as an enum
Дата
Msg-id 20200228232417.GA30765@alvherre.pgsql
обсуждение исходный текст
Ответ на Re: Portal->commandTag as an enum  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On 2020-Feb-28, Tom Lane wrote:

> Alvaro Herrera <alvherre@2ndquadrant.com> writes:
> > I just realized that we could rename command_tag_display_last_oid() to
> > something like command_tag_print_a_useless_zero_for_historical_reasons() 
> > and nothing would be lost.
> 
> Is there a way to drop that logic altogether by making the tagname string
> be "INSERT 0" for the INSERT case?  Or would the zero bleed into other
> places where we don't want it?

Hmm, interesting thought. But yeah, it would show up in ps display:

        commandTag = CreateCommandTag(parsetree->stmt);

        set_ps_display(GetCommandTagName(commandTag), false);

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: Assert failure due to "drop schema pg_temp_3 cascade" fortemporary tables and \d+ is not showing any info after drooping temp tableschema
Следующее
От: Tom Lane
Дата:
Сообщение: Re: ALTER tbl rewrite loses CLUSTER ON index (consider moving indisclustered to pg_class)