<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>pitr on PIG</title>
    <link>https://pig.pgsty.com/tags/pitr/</link>
    <description>Recent content in pitr on PIG</description>
    <generator>Hugo</generator>
    <language>en</language>
    
    
    
      <lastBuildDate>Thu, 03 Sep 2026 14:13:40 +0800</lastBuildDate>
    
    
      <atom:link href="https://pig.pgsty.com/tags/pitr/index.xml" rel="self" type="application/rss+xml" />
    
    <item>
        <title>One Grammar for Dangerous Work: PIG&#39;s Operations CLI Safety Contract</title>
        <link>https://pig.pgsty.com/design/ops-cli-safety/</link>
        <pubDate>Thu, 02 Jul 2026 00:00:00 +0000</pubDate>
        
        <guid>https://pig.pgsty.com/design/ops-cli-safety/</guid>
        <description>&lt;blockquote&gt;&#xA;&lt;p&gt;&lt;strong&gt;Decision date:&lt;/strong&gt; 2026-07-02&lt;br&gt;&#xA;&lt;strong&gt;Status:&lt;/strong&gt; Released for &lt;code&gt;pg&lt;/code&gt;, &lt;code&gt;pb&lt;/code&gt;, &lt;code&gt;pt&lt;/code&gt;, and &lt;code&gt;pitr&lt;/code&gt; by v1.5.0; the 2026-08-29 &lt;code&gt;do&lt;/code&gt; and &lt;code&gt;build proxy&lt;/code&gt; refinements were released in &lt;a href=&#34;https://pig.pgsty.com/release/pig-1.8.1/&#34;&gt;v1.8.1&lt;/a&gt;.&lt;br&gt;&#xA;&lt;strong&gt;Current reference:&lt;/strong&gt; &lt;a href=&#34;https://pig.pgsty.com/pg/&#34;&gt;&lt;code&gt;pig pg&lt;/code&gt;&lt;/a&gt;, &lt;a href=&#34;https://pig.pgsty.com/pb/&#34;&gt;&lt;code&gt;pig pb&lt;/code&gt;&lt;/a&gt;, &lt;a href=&#34;https://pig.pgsty.com/pitr/&#34;&gt;&lt;code&gt;pig pitr&lt;/code&gt;&lt;/a&gt;, &lt;a href=&#34;https://pig.pgsty.com/do/&#34;&gt;&lt;code&gt;pig do&lt;/code&gt;&lt;/a&gt;, and &lt;a href=&#34;https://pig.pgsty.com/build/&#34;&gt;&lt;code&gt;pig build&lt;/code&gt;&lt;/a&gt;&lt;br&gt;&#xA;&lt;strong&gt;Scope:&lt;/strong&gt; PIG-owned operational commands; transparent upstream commands retain upstream confirmation and exit behavior.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;h2 id=&#34;decision&#34;&gt;Decision&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;Operational convenience must not blur operational meaning. PIG distinguishes low-level primitives&#xA;from multi-stage orchestrators, makes destructive intent explicit, reserves aliases carefully, and&#xA;requires plans and structured results to describe the same action that text mode will execute.&lt;/p&gt;</description>
      </item>
    <item>
        <title>pig v1.0.0</title>
        <link>https://pig.pgsty.com/release/pig-1.0.0/</link>
        <pubDate>Mon, 26 Jan 2026 00:00:00 +0000</pubDate>
        
        <guid>https://pig.pgsty.com/release/pig-1.0.0/</guid>
        <description>&lt;p&gt;This release introduces three major new subcommand groups (&lt;code&gt;pig pg&lt;/code&gt;, &lt;code&gt;pig pt&lt;/code&gt;, &lt;code&gt;pig pb&lt;/code&gt;) for managing PostgreSQL, Patroni, and pgBackRest, along with an orchestrated PITR command and enhanced extension availability display.&lt;/p&gt;&#xA;&lt;h2 id=&#34;new-commands&#34;&gt;New Commands&#xA;&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;code&gt;pig pg&lt;/code&gt; - PostgreSQL instance management&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;pg init/start/stop/restart/reload/status&lt;/code&gt; - Control and manage PostgreSQL instances&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;pg role/promote&lt;/code&gt; - Detect and switch instance role (primary/replica)&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;pg psql/ps/kill&lt;/code&gt; - Connection and session management&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;pg vacuum/analyze/freeze/repack&lt;/code&gt; - Database maintenance operations&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;pg log&lt;/code&gt; - Log viewing (&lt;code&gt;list/tail/cat/less&lt;/code&gt;)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;code&gt;pig pt&lt;/code&gt; - Patroni cluster management&lt;/p&gt;</description>
      </item>
    <item>
        <title>pig pitr</title>
        <link>https://pig.pgsty.com/pitr/</link>
        <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
        
        <guid>https://pig.pgsty.com/pitr/</guid>
        <description>&lt;p&gt;The &lt;code&gt;pig pitr&lt;/code&gt; command performs point-in-time recovery through pgBackRest and conservatively handles the local PostgreSQL and Patroni lifecycle. Unlike the lower-level &lt;code&gt;pig pb restore&lt;/code&gt;, &lt;code&gt;pig pitr&lt;/code&gt; runs pre-restore checks, stops Patroni and PostgreSQL when needed, executes restore, then decides whether to start PostgreSQL based on the selected options.&lt;/p&gt;&#xA;&lt;p&gt;Note: for a managed default data directory, &lt;code&gt;pig pitr&lt;/code&gt; leaves Patroni stopped after recovery. Validate the restored result first, then manually restore Patroni management. This command does not automatically rejoin a Patroni cluster, perform failover, or validate cluster member state.&lt;/p&gt;</description>
      </item>
    
  </channel>
</rss>
