O'Reilly Forums: Error On Page 126? - O'Reilly Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Error On Page 126?

#1 User is offline   dserodio 

  • New Member
  • Pip
  • Group: Members
  • Posts: 1
  • Joined: 14-September 12

Posted 14 September 2012 - 08:53 AM

In chapter 10: Replication and External Data, page 126, it says:

5. Shut down the postgreSQL service and copy all the files in the data folder EXCEPT for the pg_xlog and pg_log folders to the slaves. You should make sure that pg_xlog and pg_log folders are both present on the slaves, but devoid of any files.

I've checked PostgreSQL 9.1 and 9.2 installations and neither of them have a pg_log folder. PostgreSQL's official documentation, in the 55.1. Database File Layout section doesn't mention pg_log either.

Is this a typo, and should say pg_clog instead of pg_log?

This post has been edited by dserodio: 14 September 2012 - 09:05 AM

0

#2 User is offline   Leo Hsu and Regina Obe 

  • New Member
  • Pip
  • Group: O'Reilly Author
  • Posts: 2
  • Joined: 16-January 12
  • Gender:Not Telling

Posted 12 January 2013 - 11:16 AM

View Postdserodio, on 14 September 2012 - 08:53 AM, said:

In chapter 10: Replication and External Data, page 126, it says:

5. Shut down the postgreSQL service and copy all the files in the data folder EXCEPT for the pg_xlog and pg_log folders to the slaves. You should make sure that pg_xlog and pg_log folders are both present on the slaves, but devoid of any files.

I've checked PostgreSQL 9.1 and 9.2 installations and neither of them have a pg_log folder. PostgreSQL's official documentation, in the 55.1. Database File Layout section doesn't mention pg_log either.

Is this a typo, and should say pg_clog instead of pg_log?


This is not a typo but we should clarify that it may not always reside in the data cluster and is configurable by the postgresql.conf setting: pg_log


That is the default location and it doesn't always exist. For example it may not exist if you don't have logging enabled.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users