Re: Using read stream in autoprewarm
От | Melanie Plageman |
---|---|
Тема | Re: Using read stream in autoprewarm |
Дата | |
Msg-id | CAAKRu_YqGhQLei3Oom7N0VzG7zVJ9v-WjH-cv0F8O+_zHuBOtA@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: Using read stream in autoprewarm (Melanie Plageman <melanieplageman@gmail.com>) |
Ответы |
Re: Using read stream in autoprewarm
|
Список | pgsql-hackers |
On Mon, Mar 31, 2025 at 3:27 PM Melanie Plageman <melanieplageman@gmail.com> wrote: > > I think there might be another problem with the code. We only set > cur_database in the loop in autoprewarm_databas_main() when it is 0 > > if (cur_database != blk->database) > { > if (cur_database == 0) > cur_database = blk->database; > > I know that the read stream will return InvalidBlockNumber when we > move onto the next database, but I don't see how we will end up > actually stopping prewarming in autoprewarm_database_main() when we > move on to the next database. Whoops, this isn't right. It does work. I'm going to draft a version suggesting slightly different variable naming and a couple comments to make this more clear. - Melanie
В списке pgsql-hackers по дате отправления: