Re: [HACKERS] objsubid vs subobjid

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: [HACKERS] objsubid vs subobjid
Дата
Msg-id 20170301145136.a4on57vo6j5b2tg4@alvherre.pgsql
обсуждение исходный текст
Ответ на Re: [HACKERS] objsubid vs subobjid  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
Ответы Re: [HACKERS] objsubid vs subobjid  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
Список pgsql-hackers
Peter Eisentraut wrote:
> On 2/22/17 19:35, Jim Nasby wrote:
> > pg_get_object_address() currently returns a field called subobjid, while 
> > pg_depend calls that objsubid. I'm guessing that wasn't on purpose 
> > (especially because internally the function uses objsubid), and it'd be 
> > nice to fix it.
> 
> I'm in favor of changing it, but it could theoretically break someone's
> code.

Yes, it was an oversight.  +1 for changing.

> I don't know what the practical use for these functions is.

This was originally written for BDR use in DDL replication.  Partly the
interfaces exist for testing purposes (to make sure that object
addresses can roundtrip between internal OID numerical representation
and set of names); what BDR uses is the path that goes via event
triggers (pg_event_trigger_ddl_commands and pg_event_trigger_dropped_objects).
I didn't find any use of the name "subobjid" anywhere in BDR.

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



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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: [HACKERS] ANALYZE command progress checker
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: [HACKERS] [PATCH] Use $ parameters as replacement characters forpg_stat_statements