vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hi I'm trying to gain a better understanding of how the postgres xlog works - especially about the corner cases of wal replay. One thing that I do not understand is what CheckPoint.undo is used for. I grepped through the source, and only see very few references to it, which either just print it, or set it to the checkpoint location or the redo location. The only place where is is checked is if (XLByteLT(checkPoint.undo, RecPtr) || XLByteLT(checkPoint.redo, RecPtr)) but I don't see the reason for this check, given that undo never seems to be assigned any interesting value.. Is there any in-depth documentation about the postgres xlog implementation? What am I missing? greetings, Florian Pflug ---------------------------(end of broadcast)--------------------------- TIP 6: explain analyze is your friend |
| |||
| > What am I missing? Seems, it's about that http://archives.postgresql.org/pgsql...6/msg00085.php -- Teodor Sigaev E-mail: teodor@sigaev.ru WWW: http://www.sigaev.ru/ ---------------------------(end of broadcast)--------------------------- TIP 4: Have you searched our list archives? http://archives.postgresql.org |
| |||
| Opps, sorry, I missed checkpoint keyword Teodor Sigaev wrote: > >> What am I missing? > Seems, it's about that > http://archives.postgresql.org/pgsql...6/msg00085.php > -- Teodor Sigaev E-mail: teodor@sigaev.ru WWW: http://www.sigaev.ru/ ---------------------------(end of broadcast)--------------------------- TIP 7: You can help support the PostgreSQL project by donating at http://www.postgresql.org/about/donate |
| |||
| No you're right, it's related to the WAL undo stuff that was never actually implemented. It's dead code. Teodor Sigaev wrote: > Opps, sorry, I missed checkpoint keyword > > Teodor Sigaev wrote: >> >>> What am I missing? >> Seems, it's about that >> http://archives.postgresql.org/pgsql...6/msg00085.php >> > -- Heikki Linnakangas EnterpriseDB http://www.enterprisedb.com ---------------------------(end of broadcast)--------------------------- TIP 4: Have you searched our list archives? http://archives.postgresql.org |
| |||
| Heikki Linnakangas wrote: > No you're right, it's related to the WAL undo stuff that was never > actually implemented. It's dead code. > > Teodor Sigaev wrote: >> Opps, sorry, I missed checkpoint keyword >> >> Teodor Sigaev wrote: >>> >>>> What am I missing? >>> Seems, it's about that >>> http://archives.postgresql.org/pgsql...6/msg00085.php Thanks - everything makes much more sense now ;-) greetings, Florian Pflug ---------------------------(end of broadcast)--------------------------- TIP 7: You can help support the PostgreSQL project by donating at http://www.postgresql.org/about/donate |
| |||
| Florian G. Pflug wrote: > Heikki Linnakangas wrote: > >No you're right, it's related to the WAL undo stuff that was never > >actually implemented. It's dead code. > > > >Teodor Sigaev wrote: > >>Opps, sorry, I missed checkpoint keyword > >> > >>Teodor Sigaev wrote: > >>> > >>>>What am I missing? > >>>Seems, it's about that > >>>http://archives.postgresql.org/pgsql...6/msg00085.php > > Thanks - everything makes much more sense now ;-) So if you want to submit a patch to remove it, it'll make sense for future readers as well ;-) -- Alvaro Herrera http://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc. ---------------------------(end of broadcast)--------------------------- TIP 1: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to majordomo@postgresql.org so that your message can get through to the mailing list cleanly |
| |||
| Florian G. Pflug wrote: > Alvaro Herrera wrote: > >Florian G. Pflug wrote: > >>Heikki Linnakangas wrote: > >>>No you're right, it's related to the WAL undo stuff that was never > >>>actually implemented. It's dead code. > >>> > >>>Teodor Sigaev wrote: > >>>>Opps, sorry, I missed checkpoint keyword > >>>> > >>>>Teodor Sigaev wrote: > >>>>>>What am I missing? > >>>>>Seems, it's about that > >>>>>http://archives.postgresql.org/pgsql...6/msg00085.php > >>Thanks - everything makes much more sense now ;-) > > > >So if you want to submit a patch to remove it, it'll make sense for > >future readers as well ;-) > > Here you go. I'm not subscribe to pgsql-patches, so I posted this here. I think you should increase pg_control version. -- Alvaro Herrera http://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc. ---------------------------(end of broadcast)--------------------------- TIP 9: In versions below 8.0, the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match |
| ||||
| Alvaro Herrera <alvherre@commandprompt.com> writes: > I think you should increase pg_control version. And the WAL page-header version, since this also changes WAL contents. regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 1: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to majordomo@postgresql.org so that your message can get through to the mailing list cleanly |