Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1v3bTJ-000pt3-Cg for pgsql-hackers@arkaria.postgresql.org; Tue, 30 Sep 2025 14:36:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1v3bTH-00AGrD-8k for pgsql-hackers@arkaria.postgresql.org; Tue, 30 Sep 2025 14:36:51 +0000 Received: from makus.postgresql.org ([72.32.157.229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1v3bTG-00AGr5-Va for pgsql-hackers@lists.postgresql.org; Tue, 30 Sep 2025 14:36:51 +0000 Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1v3bTE-000iGN-1r for pgsql-hackers@postgresql.org; Tue, 30 Sep 2025 14:36:50 +0000 Received: by mail-wr1-x432.google.com with SMTP id ffacd0b85a97d-421b93ee372so1213024f8f.2 for ; Tue, 30 Sep 2025 07:36:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1759243008; x=1759847808; darn=postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=bCuEOhBoKWmKE1EKOr3Sn+u705NtMPm90wz67/OciHc=; b=iSOBbmC1qY24RO6FKe9MKcZp5OclelY3cNgeb2rahHve8gmGfL55DoIWTAEu3j1ZIF H7G1KOS7CCzeypjQzPI7lrLT9dCvhvbJYbaGDAwtDCDnpmCNsKpbqmBbgouo22PpKxci xNbk5Baqe5LLnqjCXf6Lz6LEkIMk5QDHU2Ooedwp8RvZIpKVGScg/K6kNRX989hBu/sq VX0GWVZz2nZA8OouPRt+3jJw67KGwCpJJ4gW5apsNh7bWs6q8VdhgE0lp70xNGsI1jEX tuyuCWDt6Ov0vQTWzn5ABewqFmif4BHIuhj6/8lW7rpKkDXTV4ThKc6UMBruQ3pjYVH/ NDAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1759243008; x=1759847808; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=bCuEOhBoKWmKE1EKOr3Sn+u705NtMPm90wz67/OciHc=; b=rwVoZLDF7Xnt6XwFS9b5d7C8lVtQ4QWGXbrRWEiQXNiviH2wulFfhxbnwOQzGx5pmx DAAPG/3yBLWukA58lpxybsP5UQZFPjJqFFXFlH5k109Yx1ZpiQXFpbs7t7m3IjwNJm5I WGMUDczHiK5Gu0UuEgHkqZuJS2AEXf85VfKfiYIZBmaVUM744CSxeqpYR2WMXaD00ww6 lT5wwF4Ot0CLT0Pymdrjc/pnWJdNv8m2o4v9bsmlRQEobE/58UVEySxjxS9/mfxMryvD OE6710b0zrPXI3NkGRDc6HQanS7IyOFynpcQt6tojLENjbIB6js+CHxYocX0WWqhbWlQ XLiA== X-Gm-Message-State: AOJu0YxUvs/WtHnnIzV2usNofqJ7PbnQe3KORCgyCWXnfDo+GqCL+kDT mYIt2DknzBCo4bEflRnree98V6FuXJ+eaeL7jZmZdkqtXI6WP0HSk7oIr6xq1MgCbFtMxM7Ifid 8ztE0p4HaINwCru+hGGUEq+NlbUKttsM= X-Gm-Gg: ASbGncvmvyjKSK+MfhwkbQw4ceiTzij1g5oKzkhFT0+G3gTJ5QuPHkiG1KfRycjxgkN rP3neg8iLwhO3VUYBKSwQpyxy+JUiGC2fPauTvKFG3bV2Cf59ZmMmjaz+bnkr8y5chpmWY1JkcR GoRfip46JB97TE4KYgmsKVCDpzm9a5oIQQosuYVApsHxc/88mOsbSmYEHgx4GtqwUXmfYaY0GDW Pn1IHsO4eydosyUX2fUv/SpNfwzfBc+uMwaJpbT X-Google-Smtp-Source: AGHT+IHjo9CYIaWjFnpySvzMPpbXCgMxAmlbubpGUMoYwG97e7MGIC/8wzNBpqmDu2QsLjw8DwAFRO6xdTLGc7pgp8s= X-Received: by 2002:a5d:5f85:0:b0:3f9:1571:fdea with SMTP id ffacd0b85a97d-40e4cc630b2mr21943665f8f.44.1759243007547; Tue, 30 Sep 2025 07:36:47 -0700 (PDT) MIME-Version: 1.0 References: <2ebde3606beab536a8693e8f54c33dc0981b8478.camel@cybertec.at> <3346e4ef343f1ac99ad9db02f2cdbb2fb7507a9f.camel@cybertec.at> In-Reply-To: <3346e4ef343f1ac99ad9db02f2cdbb2fb7507a9f.camel@cybertec.at> From: Ashutosh Bapat Date: Tue, 30 Sep 2025 20:06:32 +0530 X-Gm-Features: AS18NWCC2jRKhfDCQx-zk3Uqos7pgp8KCoIBQ_TLlvuyTq3E0tg29WrlK3XiHGY Message-ID: Subject: Re: pg_restore documentation and --create/--single-transaction limitation To: Laurenz Albe Cc: pgsql-hackers Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, Sep 30, 2025 at 6:06=E2=80=AFPM Laurenz Albe wrote: > > On Tue, 2025-09-30 at 17:01 +0530, Ashutosh Bapat wrote: > > Thanks a lot for the research and pointing out missing --jobs. > > > > > So I think that your suggestion makes sense. > > > > > > I tried to improve the English, and I have added the incompatibility > > > with multiple --jobs to the --single-transaction documentation. > > > > > > Does that look alright to you? > > > > @@ -541,7 +545,9 @@ PostgreSQL documentation > > emitted commands in BEGIN/COMMIT)= . This > > ensures that either all the commands complete successfully, or no > > changes are applied. This option implies > > - . > > + . It cannot be used together with > > + , which switches database connections, or wi= th > > > > I didn't understand ", which switches ..." part. The code comment says > > /* > > * -C is not compatible with -1, because we can't create a database insi= de > > * a transaction block. > > */ > > if (opts->createDB && opts->single_txn) > > pg_fatal("options -C/--create and -1/--single-transaction cannot be > > used together"); > > > > It doesn't say anything about switching connections. But it's too low > > level of detail, which we may just eliminate. > > > > + multiple . > > > > This seems to be confusing. I read it as --single-transaction can not > > be used when there are multiple --jobs specifications e.g. > > --single-transaction --jobs 1 --jobs 2. Maybe just say " multiple > > jobs". Even corresponding --jobs documentation says > > > > pipe or standard input). Also, multiple > > jobs cannot be used together with the > > option . > > > > Attached patch with those changes. > > I agree with your simpler version. I'll mark the patch "ready for commit= ter". Thanks. --=20 Best Wishes, Ashutosh Bapat