Lines Matching refs:ControlFile

62 static ControlFileData ControlFile; /* pg_control values */  variable
422 WalSegSz = ControlFile.xlog_seg_size; in main()
444 ControlFile.checkPointCopy.nextXid = in main()
446 XidFromFullTransactionId(ControlFile.checkPointCopy.nextXid)); in main()
450 ControlFile.checkPointCopy.oldestXid = set_oldest_xid; in main()
451 ControlFile.checkPointCopy.oldestXidDB = InvalidOid; in main()
455 ControlFile.checkPointCopy.nextXid = in main()
456 FullTransactionIdFromEpochAndXid(EpochFromFullTransactionId(ControlFile.checkPointCopy.nextXid), in main()
460 ControlFile.checkPointCopy.oldestCommitTsXid = set_oldest_commit_ts_xid; in main()
462 ControlFile.checkPointCopy.newestCommitTsXid = set_newest_commit_ts_xid; in main()
465 ControlFile.checkPointCopy.nextOid = set_oid; in main()
469 ControlFile.checkPointCopy.nextMulti = set_mxid; in main()
471 ControlFile.checkPointCopy.oldestMulti = set_oldestmxid; in main()
472 if (ControlFile.checkPointCopy.oldestMulti < FirstMultiXactId) in main()
473 ControlFile.checkPointCopy.oldestMulti += FirstMultiXactId; in main()
474 ControlFile.checkPointCopy.oldestMultiDB = InvalidOid; in main()
478 ControlFile.checkPointCopy.nextMultiOffset = set_mxoff; in main()
480 if (minXlogTli > ControlFile.checkPointCopy.ThisTimeLineID) in main()
482 ControlFile.checkPointCopy.ThisTimeLineID = minXlogTli; in main()
483 ControlFile.checkPointCopy.PrevTimeLineID = minXlogTli; in main()
487 ControlFile.xlog_seg_size = WalSegSz; in main()
511 if (ControlFile.state != DB_SHUTDOWNED && !force) in main()
642 memcpy(&ControlFile, buffer, sizeof(ControlFile)); in read_controlfile()
645 if (!IsValidWalSegSize(ControlFile.xlog_seg_size)) in read_controlfile()
649 ControlFile.xlog_seg_size), in read_controlfile()
650 ControlFile.xlog_seg_size); in read_controlfile()
676 memset(&ControlFile, 0, sizeof(ControlFile)); in GuessControlValues()
678 ControlFile.pg_control_version = PG_CONTROL_VERSION; in GuessControlValues()
679 ControlFile.catalog_version_no = CATALOG_VERSION_NO; in GuessControlValues()
690 ControlFile.system_identifier = sysidentifier; in GuessControlValues()
692 ControlFile.checkPointCopy.redo = SizeOfXLogLongPHD; in GuessControlValues()
693 ControlFile.checkPointCopy.ThisTimeLineID = 1; in GuessControlValues()
694 ControlFile.checkPointCopy.PrevTimeLineID = 1; in GuessControlValues()
695 ControlFile.checkPointCopy.fullPageWrites = false; in GuessControlValues()
696 ControlFile.checkPointCopy.nextXid = in GuessControlValues()
698 ControlFile.checkPointCopy.nextOid = FirstBootstrapObjectId; in GuessControlValues()
699 ControlFile.checkPointCopy.nextMulti = FirstMultiXactId; in GuessControlValues()
700 ControlFile.checkPointCopy.nextMultiOffset = 0; in GuessControlValues()
701 ControlFile.checkPointCopy.oldestXid = FirstNormalTransactionId; in GuessControlValues()
702 ControlFile.checkPointCopy.oldestXidDB = InvalidOid; in GuessControlValues()
703 ControlFile.checkPointCopy.oldestMulti = FirstMultiXactId; in GuessControlValues()
704 ControlFile.checkPointCopy.oldestMultiDB = InvalidOid; in GuessControlValues()
705 ControlFile.checkPointCopy.time = (pg_time_t) time(NULL); in GuessControlValues()
706 ControlFile.checkPointCopy.oldestActiveXid = InvalidTransactionId; in GuessControlValues()
708 ControlFile.state = DB_SHUTDOWNED; in GuessControlValues()
709 ControlFile.time = (pg_time_t) time(NULL); in GuessControlValues()
710 ControlFile.checkPoint = ControlFile.checkPointCopy.redo; in GuessControlValues()
711 ControlFile.unloggedLSN = FirstNormalUnloggedLSN; in GuessControlValues()
715 ControlFile.wal_level = WAL_LEVEL_MINIMAL; in GuessControlValues()
716 ControlFile.wal_log_hints = false; in GuessControlValues()
717 ControlFile.track_commit_timestamp = false; in GuessControlValues()
718 ControlFile.MaxConnections = 100; in GuessControlValues()
719 ControlFile.max_wal_senders = 10; in GuessControlValues()
720 ControlFile.max_worker_processes = 8; in GuessControlValues()
721 ControlFile.max_prepared_xacts = 0; in GuessControlValues()
722 ControlFile.max_locks_per_xact = 64; in GuessControlValues()
724 ControlFile.maxAlign = MAXIMUM_ALIGNOF; in GuessControlValues()
725 ControlFile.floatFormat = FLOATFORMAT_VALUE; in GuessControlValues()
726 ControlFile.blcksz = BLCKSZ; in GuessControlValues()
727 ControlFile.relseg_size = RELSEG_SIZE; in GuessControlValues()
728 ControlFile.xlog_blcksz = XLOG_BLCKSZ; in GuessControlValues()
729 ControlFile.xlog_seg_size = DEFAULT_XLOG_SEG_SIZE; in GuessControlValues()
730 ControlFile.nameDataLen = NAMEDATALEN; in GuessControlValues()
731 ControlFile.indexMaxKeys = INDEX_MAX_KEYS; in GuessControlValues()
732 ControlFile.toast_max_chunk_size = TOAST_MAX_CHUNK_SIZE; in GuessControlValues()
733 ControlFile.loblksize = LOBLKSIZE; in GuessControlValues()
734 ControlFile.float8ByVal = FLOAT8PASSBYVAL; in GuessControlValues()
758 ControlFile.pg_control_version); in PrintControlValues()
760 ControlFile.catalog_version_no); in PrintControlValues()
762 (unsigned long long) ControlFile.system_identifier); in PrintControlValues()
764 ControlFile.checkPointCopy.ThisTimeLineID); in PrintControlValues()
766 ControlFile.checkPointCopy.fullPageWrites ? _("on") : _("off")); in PrintControlValues()
768 EpochFromFullTransactionId(ControlFile.checkPointCopy.nextXid), in PrintControlValues()
769 XidFromFullTransactionId(ControlFile.checkPointCopy.nextXid)); in PrintControlValues()
771 ControlFile.checkPointCopy.nextOid); in PrintControlValues()
773 ControlFile.checkPointCopy.nextMulti); in PrintControlValues()
775 ControlFile.checkPointCopy.nextMultiOffset); in PrintControlValues()
777 ControlFile.checkPointCopy.oldestXid); in PrintControlValues()
779 ControlFile.checkPointCopy.oldestXidDB); in PrintControlValues()
781 ControlFile.checkPointCopy.oldestActiveXid); in PrintControlValues()
783 ControlFile.checkPointCopy.oldestMulti); in PrintControlValues()
785 ControlFile.checkPointCopy.oldestMultiDB); in PrintControlValues()
787 ControlFile.checkPointCopy.oldestCommitTsXid); in PrintControlValues()
789 ControlFile.checkPointCopy.newestCommitTsXid); in PrintControlValues()
791 ControlFile.maxAlign); in PrintControlValues()
794 ControlFile.blcksz); in PrintControlValues()
796 ControlFile.relseg_size); in PrintControlValues()
798 ControlFile.xlog_blcksz); in PrintControlValues()
800 ControlFile.xlog_seg_size); in PrintControlValues()
802 ControlFile.nameDataLen); in PrintControlValues()
804 ControlFile.indexMaxKeys); in PrintControlValues()
806 ControlFile.toast_max_chunk_size); in PrintControlValues()
808 ControlFile.loblksize); in PrintControlValues()
813 (ControlFile.float8ByVal ? _("by value") : _("by reference"))); in PrintControlValues()
815 ControlFile.data_checksum_version); in PrintControlValues()
830 XLogFileName(fname, ControlFile.checkPointCopy.ThisTimeLineID, in PrintNewControlValues()
837 ControlFile.checkPointCopy.nextMulti); in PrintNewControlValues()
839 ControlFile.checkPointCopy.oldestMulti); in PrintNewControlValues()
841 ControlFile.checkPointCopy.oldestMultiDB); in PrintNewControlValues()
847 ControlFile.checkPointCopy.nextMultiOffset); in PrintNewControlValues()
853 ControlFile.checkPointCopy.nextOid); in PrintNewControlValues()
859 XidFromFullTransactionId(ControlFile.checkPointCopy.nextXid)); in PrintNewControlValues()
861 ControlFile.checkPointCopy.oldestXid); in PrintNewControlValues()
863 ControlFile.checkPointCopy.oldestXidDB); in PrintNewControlValues()
869 EpochFromFullTransactionId(ControlFile.checkPointCopy.nextXid)); in PrintNewControlValues()
875 ControlFile.checkPointCopy.oldestCommitTsXid); in PrintNewControlValues()
880 ControlFile.checkPointCopy.newestCommitTsXid); in PrintNewControlValues()
886 ControlFile.xlog_seg_size); in PrintNewControlValues()
902 ControlFile.checkPointCopy.redo); in RewriteControlFile()
903 ControlFile.checkPointCopy.time = (pg_time_t) time(NULL); in RewriteControlFile()
905 ControlFile.state = DB_SHUTDOWNED; in RewriteControlFile()
906 ControlFile.time = (pg_time_t) time(NULL); in RewriteControlFile()
907 ControlFile.checkPoint = ControlFile.checkPointCopy.redo; in RewriteControlFile()
908 ControlFile.minRecoveryPoint = 0; in RewriteControlFile()
909 ControlFile.minRecoveryPointTLI = 0; in RewriteControlFile()
910 ControlFile.backupStartPoint = 0; in RewriteControlFile()
911 ControlFile.backupEndPoint = 0; in RewriteControlFile()
912 ControlFile.backupEndRequired = false; in RewriteControlFile()
919 ControlFile.wal_level = WAL_LEVEL_MINIMAL; in RewriteControlFile()
920 ControlFile.wal_log_hints = false; in RewriteControlFile()
921 ControlFile.track_commit_timestamp = false; in RewriteControlFile()
922 ControlFile.MaxConnections = 100; in RewriteControlFile()
923 ControlFile.max_wal_senders = 10; in RewriteControlFile()
924 ControlFile.max_worker_processes = 8; in RewriteControlFile()
925 ControlFile.max_prepared_xacts = 0; in RewriteControlFile()
926 ControlFile.max_locks_per_xact = 64; in RewriteControlFile()
929 update_controlfile(".", &ControlFile, true); in RewriteControlFile()
954 segs_per_xlogid = (UINT64CONST(0x0000000100000000) / ControlFile.xlog_seg_size); in FindEndOfXLOG()
955 newXlogSegNo = ControlFile.checkPointCopy.redo / ControlFile.xlog_seg_size; in FindEndOfXLOG()
1014 xlogbytepos = newXlogSegNo * ControlFile.xlog_seg_size; in FindEndOfXLOG()
1015 newXlogSegNo = (xlogbytepos + ControlFile.xlog_seg_size - 1) / WalSegSz; in FindEndOfXLOG()
1138 page->xlp_tli = ControlFile.checkPointCopy.ThisTimeLineID; in WriteEmptyXLOG()
1139 page->xlp_pageaddr = ControlFile.checkPointCopy.redo - SizeOfXLogLongPHD; in WriteEmptyXLOG()
1141 longpage->xlp_sysid = ControlFile.system_identifier; in WriteEmptyXLOG()
1157 memcpy(recptr, &ControlFile.checkPointCopy, in WriteEmptyXLOG()
1167 XLogFilePath(path, ControlFile.checkPointCopy.ThisTimeLineID, in WriteEmptyXLOG()