Beginner hacker item: Fix to_reg*() input type

Поиск
Список
Период
Сортировка
От Jim Nasby
Тема Beginner hacker item: Fix to_reg*() input type
Дата
Msg-id 568ADA20.7090205@BlueTreble.com
обсуждение исходный текст
Ответы Re: Beginner hacker item: Fix to_reg*() input type  (Petr Korobeinikov <pkorobeinikov@gmail.com>)
Список pgsql-hackers
All the to_reg* functions in src/backend/utils/adt/regproc.c currently 
accept a cstring. Per [1], they should accept text. This should be a 
fairly simple change to make:

- Modify the functions in regproc.c. Take a look at how other text input 
functions work to see what needs to happen here (you'll want to use 
text_to_cstring() as part of that.)

- Modify the appropriate entries in src/include/catalog/pg_proc.h

[1] http://www.postgresql.org/message-id/29618.1451882238@sss.pgh.pa.us. 
Note that I mistakenly referred to reg*in functions in that email; it's 
the to_reg* functions that need to change.
-- 
Jim Nasby, Data Architect, Blue Treble Consulting, Austin TX
Experts in Analytics, Data Architecture and PostgreSQL
Data in Trouble? Get it in Treble! http://BlueTreble.com



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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: ALTER TABLE behind-the-scenes effects' CONTEXT
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: custom function for converting human readable sizes to bytes