Re: Sequence Access Method WIP
От | Alvaro Herrera |
---|---|
Тема | Re: Sequence Access Method WIP |
Дата | |
Msg-id | 20150420162256.GU4369@alvh.no-ip.org обсуждение исходный текст |
Ответ на | Re: Sequence Access Method WIP (Heikki Linnakangas <hlinnaka@iki.fi>) |
Список | pgsql-hackers |
Heikki Linnakangas wrote: > * The transformations of the arrays in get_state() and set_state() functions > are a bit complicated. The seqam_get_state() function returns two C arrays, > and pg_sequence_get_state() turns them into a text[] array. Why not > construct the text[] array directly in the AM? I guess it's a bit more > convenient to the AM, if the pg_sequence_get_state() do that, but if that's > an issue, you could create generic helper function to turn two C string > arrays into text[], and call that from the AM. Um, see strlist_to_textarray() in objectaddress.c if you do that. Maybe we need some generic place to store that kind of helper function. -- Álvaro Herrera http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
В списке pgsql-hackers по дате отправления: