Refectoring of receivelog.c

Поиск
Список
Период
Сортировка
От Magnus Hagander
Тема Refectoring of receivelog.c
Дата
Msg-id CABUevExgEQrkMPsWdrEFy8zqUYNnKWxDJAWcEXSGNf1uurrjmw@mail.gmail.com
обсуждение исходный текст
Ответы Re: Refectoring of receivelog.c  (Craig Ringer <craig@2ndquadrant.com>)
Список pgsql-hackers
I was working on adding the tar streaming functionality we talked about at the developer meeting to pg_basebackup, and rapidly ran across the issue that Andres has been complaining about for a while. The code in receivelog.c just passes an insane number of parameters around. Adding or changing even a small thing ends up touching a huge number of places.

Here's an attempt to refactor the code to instead pass around a control structure. I think it's a definite win already now, and we can't just keep adding new functionality on top of the current one.

I'll proceed to work on the actual functionality I was working on to go on top of this separately, but would appreciate a review of this part independently. It's mostly mechanical, but there may definitely be mistakes - or thinkos in the whole idea...

--
Вложения

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

Предыдущее
От: Christian Ullrich
Дата:
Сообщение: Re: pl/pgSQL, get diagnostics and big data
Следующее
От: David Rowley
Дата:
Сообщение: Re: Removing Functionally Dependent GROUP BY Columns