Lines Matching refs:ControlFile

60 static ControlFileData ControlFile; /* pg_control values */  variable
386 ControlFile.checkPointCopy.nextXidEpoch = set_xid_epoch; in main()
390 ControlFile.checkPointCopy.oldestXid = set_oldest_xid; in main()
391 ControlFile.checkPointCopy.oldestXidDB = InvalidOid; in main()
395 ControlFile.checkPointCopy.nextXid = set_xid; in main()
398 ControlFile.checkPointCopy.oldestCommitTsXid = set_oldest_commit_ts_xid; in main()
400 ControlFile.checkPointCopy.newestCommitTsXid = set_newest_commit_ts_xid; in main()
403 ControlFile.checkPointCopy.nextOid = set_oid; in main()
407 ControlFile.checkPointCopy.nextMulti = set_mxid; in main()
409 ControlFile.checkPointCopy.oldestMulti = set_oldestmxid; in main()
410 if (ControlFile.checkPointCopy.oldestMulti < FirstMultiXactId) in main()
411 ControlFile.checkPointCopy.oldestMulti += FirstMultiXactId; in main()
412 ControlFile.checkPointCopy.oldestMultiDB = InvalidOid; in main()
416 ControlFile.checkPointCopy.nextMultiOffset = set_mxoff; in main()
418 if (minXlogTli > ControlFile.checkPointCopy.ThisTimeLineID) in main()
420 ControlFile.checkPointCopy.ThisTimeLineID = minXlogTli; in main()
421 ControlFile.checkPointCopy.PrevTimeLineID = minXlogTli; in main()
446 if (ControlFile.state != DB_SHUTDOWNED && !force) in main()
587 memcpy(&ControlFile, buffer, sizeof(ControlFile)); in ReadControlFile()
594 memcpy(&ControlFile, buffer, sizeof(ControlFile)); in ReadControlFile()
619 memset(&ControlFile, 0, sizeof(ControlFile)); in GuessControlValues()
621 ControlFile.pg_control_version = PG_CONTROL_VERSION; in GuessControlValues()
622 ControlFile.catalog_version_no = CATALOG_VERSION_NO; in GuessControlValues()
633 ControlFile.system_identifier = sysidentifier; in GuessControlValues()
635 ControlFile.checkPointCopy.redo = SizeOfXLogLongPHD; in GuessControlValues()
636 ControlFile.checkPointCopy.ThisTimeLineID = 1; in GuessControlValues()
637 ControlFile.checkPointCopy.PrevTimeLineID = 1; in GuessControlValues()
638 ControlFile.checkPointCopy.fullPageWrites = false; in GuessControlValues()
639 ControlFile.checkPointCopy.nextXidEpoch = 0; in GuessControlValues()
640 ControlFile.checkPointCopy.nextXid = FirstNormalTransactionId; in GuessControlValues()
641 ControlFile.checkPointCopy.nextOid = FirstBootstrapObjectId; in GuessControlValues()
642 ControlFile.checkPointCopy.nextMulti = FirstMultiXactId; in GuessControlValues()
643 ControlFile.checkPointCopy.nextMultiOffset = 0; in GuessControlValues()
644 ControlFile.checkPointCopy.oldestXid = FirstNormalTransactionId; in GuessControlValues()
645 ControlFile.checkPointCopy.oldestXidDB = InvalidOid; in GuessControlValues()
646 ControlFile.checkPointCopy.oldestMulti = FirstMultiXactId; in GuessControlValues()
647 ControlFile.checkPointCopy.oldestMultiDB = InvalidOid; in GuessControlValues()
648 ControlFile.checkPointCopy.time = (pg_time_t) time(NULL); in GuessControlValues()
649 ControlFile.checkPointCopy.oldestActiveXid = InvalidTransactionId; in GuessControlValues()
651 ControlFile.state = DB_SHUTDOWNED; in GuessControlValues()
652 ControlFile.time = (pg_time_t) time(NULL); in GuessControlValues()
653 ControlFile.checkPoint = ControlFile.checkPointCopy.redo; in GuessControlValues()
654 ControlFile.unloggedLSN = 1; in GuessControlValues()
658 ControlFile.wal_level = WAL_LEVEL_MINIMAL; in GuessControlValues()
659 ControlFile.wal_log_hints = false; in GuessControlValues()
660 ControlFile.track_commit_timestamp = false; in GuessControlValues()
661 ControlFile.MaxConnections = 100; in GuessControlValues()
662 ControlFile.max_worker_processes = 8; in GuessControlValues()
663 ControlFile.max_prepared_xacts = 0; in GuessControlValues()
664 ControlFile.max_locks_per_xact = 64; in GuessControlValues()
666 ControlFile.maxAlign = MAXIMUM_ALIGNOF; in GuessControlValues()
667 ControlFile.floatFormat = FLOATFORMAT_VALUE; in GuessControlValues()
668 ControlFile.blcksz = BLCKSZ; in GuessControlValues()
669 ControlFile.relseg_size = RELSEG_SIZE; in GuessControlValues()
670 ControlFile.xlog_blcksz = XLOG_BLCKSZ; in GuessControlValues()
671 ControlFile.xlog_seg_size = XLOG_SEG_SIZE; in GuessControlValues()
672 ControlFile.nameDataLen = NAMEDATALEN; in GuessControlValues()
673 ControlFile.indexMaxKeys = INDEX_MAX_KEYS; in GuessControlValues()
674 ControlFile.toast_max_chunk_size = TOAST_MAX_CHUNK_SIZE; in GuessControlValues()
675 ControlFile.loblksize = LOBLKSIZE; in GuessControlValues()
676 ControlFile.float4ByVal = FLOAT4PASSBYVAL; in GuessControlValues()
677 ControlFile.float8ByVal = FLOAT8PASSBYVAL; in GuessControlValues()
707 ControlFile.system_identifier); in PrintControlValues()
710 ControlFile.pg_control_version); in PrintControlValues()
712 ControlFile.catalog_version_no); in PrintControlValues()
716 ControlFile.checkPointCopy.ThisTimeLineID); in PrintControlValues()
718 ControlFile.checkPointCopy.fullPageWrites ? _("on") : _("off")); in PrintControlValues()
720 ControlFile.checkPointCopy.nextXidEpoch, in PrintControlValues()
721 ControlFile.checkPointCopy.nextXid); in PrintControlValues()
723 ControlFile.checkPointCopy.nextOid); in PrintControlValues()
725 ControlFile.checkPointCopy.nextMulti); in PrintControlValues()
727 ControlFile.checkPointCopy.nextMultiOffset); in PrintControlValues()
729 ControlFile.checkPointCopy.oldestXid); in PrintControlValues()
731 ControlFile.checkPointCopy.oldestXidDB); in PrintControlValues()
733 ControlFile.checkPointCopy.oldestActiveXid); in PrintControlValues()
735 ControlFile.checkPointCopy.oldestMulti); in PrintControlValues()
737 ControlFile.checkPointCopy.oldestMultiDB); in PrintControlValues()
739 ControlFile.checkPointCopy.oldestCommitTsXid); in PrintControlValues()
741 ControlFile.checkPointCopy.newestCommitTsXid); in PrintControlValues()
743 ControlFile.maxAlign); in PrintControlValues()
746 ControlFile.blcksz); in PrintControlValues()
748 ControlFile.relseg_size); in PrintControlValues()
750 ControlFile.xlog_blcksz); in PrintControlValues()
752 ControlFile.xlog_seg_size); in PrintControlValues()
754 ControlFile.nameDataLen); in PrintControlValues()
756 ControlFile.indexMaxKeys); in PrintControlValues()
758 ControlFile.toast_max_chunk_size); in PrintControlValues()
760 ControlFile.loblksize); in PrintControlValues()
765 (ControlFile.float4ByVal ? _("by value") : _("by reference"))); in PrintControlValues()
767 (ControlFile.float8ByVal ? _("by value") : _("by reference"))); in PrintControlValues()
769 ControlFile.data_checksum_version); in PrintControlValues()
784 XLogFileName(fname, ControlFile.checkPointCopy.ThisTimeLineID, newXlogSegNo); in PrintNewControlValues()
790 ControlFile.checkPointCopy.nextMulti); in PrintNewControlValues()
792 ControlFile.checkPointCopy.oldestMulti); in PrintNewControlValues()
794 ControlFile.checkPointCopy.oldestMultiDB); in PrintNewControlValues()
800 ControlFile.checkPointCopy.nextMultiOffset); in PrintNewControlValues()
806 ControlFile.checkPointCopy.nextOid); in PrintNewControlValues()
812 ControlFile.checkPointCopy.nextXid); in PrintNewControlValues()
814 ControlFile.checkPointCopy.oldestXid); in PrintNewControlValues()
816 ControlFile.checkPointCopy.oldestXidDB); in PrintNewControlValues()
822 ControlFile.checkPointCopy.nextXidEpoch); in PrintNewControlValues()
828 ControlFile.checkPointCopy.oldestCommitTsXid); in PrintNewControlValues()
833 ControlFile.checkPointCopy.newestCommitTsXid); in PrintNewControlValues()
861 ControlFile.checkPointCopy.redo); in RewriteControlFile()
862 ControlFile.checkPointCopy.time = (pg_time_t) time(NULL); in RewriteControlFile()
864 ControlFile.state = DB_SHUTDOWNED; in RewriteControlFile()
865 ControlFile.time = (pg_time_t) time(NULL); in RewriteControlFile()
866 ControlFile.checkPoint = ControlFile.checkPointCopy.redo; in RewriteControlFile()
867 ControlFile.prevCheckPoint = 0; in RewriteControlFile()
868 ControlFile.minRecoveryPoint = 0; in RewriteControlFile()
869 ControlFile.minRecoveryPointTLI = 0; in RewriteControlFile()
870 ControlFile.backupStartPoint = 0; in RewriteControlFile()
871 ControlFile.backupEndPoint = 0; in RewriteControlFile()
872 ControlFile.backupEndRequired = false; in RewriteControlFile()
879 ControlFile.wal_level = WAL_LEVEL_MINIMAL; in RewriteControlFile()
880 ControlFile.wal_log_hints = false; in RewriteControlFile()
881 ControlFile.track_commit_timestamp = false; in RewriteControlFile()
882 ControlFile.MaxConnections = 100; in RewriteControlFile()
883 ControlFile.max_worker_processes = 8; in RewriteControlFile()
884 ControlFile.max_prepared_xacts = 0; in RewriteControlFile()
885 ControlFile.max_locks_per_xact = 64; in RewriteControlFile()
888 ControlFile.xlog_seg_size = XLogSegSize; in RewriteControlFile()
891 INIT_CRC32C(ControlFile.crc); in RewriteControlFile()
892 COMP_CRC32C(ControlFile.crc, in RewriteControlFile()
893 (char *) &ControlFile, in RewriteControlFile()
895 FIN_CRC32C(ControlFile.crc); in RewriteControlFile()
905 memcpy(buffer, &ControlFile, sizeof(ControlFileData)); in RewriteControlFile()
961 segs_per_xlogid = (UINT64CONST(0x0000000100000000) / ControlFile.xlog_seg_size); in FindEndOfXLOG()
962 newXlogSegNo = ControlFile.checkPointCopy.redo / ControlFile.xlog_seg_size; in FindEndOfXLOG()
1024 xlogbytepos = newXlogSegNo * ControlFile.xlog_seg_size; in FindEndOfXLOG()
1156 page->xlp_tli = ControlFile.checkPointCopy.ThisTimeLineID; in WriteEmptyXLOG()
1157 page->xlp_pageaddr = ControlFile.checkPointCopy.redo - SizeOfXLogLongPHD; in WriteEmptyXLOG()
1159 longpage->xlp_sysid = ControlFile.system_identifier; in WriteEmptyXLOG()
1175 memcpy(recptr, &ControlFile.checkPointCopy, in WriteEmptyXLOG()
1185 XLogFilePath(path, ControlFile.checkPointCopy.ThisTimeLineID, newXlogSegNo); in WriteEmptyXLOG()