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 1twsDH-000bKh-U9 for pgsql-general@arkaria.postgresql.org; Tue, 25 Mar 2025 00:32:15 +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 1twsDG-00CIVl-8c for pgsql-general@arkaria.postgresql.org; Tue, 25 Mar 2025 00:32:14 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1twsDF-00CIVZ-TO for pgsql-general@lists.postgresql.org; Tue, 25 Mar 2025 00:32:13 +0000 Received: from mail-pj1-x102d.google.com ([2607:f8b0:4864:20::102d]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1twsDD-000yRk-1U for pgsql-general@postgresql.org; Tue, 25 Mar 2025 00:32:13 +0000 Received: by mail-pj1-x102d.google.com with SMTP id 98e67ed59e1d1-301a4d5156aso8622471a91.1 for ; Mon, 24 Mar 2025 17:32:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1742862729; x=1743467529; darn=postgresql.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=6tNvaKg0Qe6jhXzt106uDehwc4pYd2ePVqkw6nKnZJY=; b=eI8WxuqfHHkU1ZyJq9eDvvs/3zeEJUsM4qHVx2WfMrxTwOw3o0hfrUcqA07in5hPLT 3mxoVbjP7pGWZ/e/5yZzHBEt3RqBxxdNASLr6Dy++ODZpPV5b5dMEpCn3BR9gkQyOcwh 3XQpnjP0ds4oClJ1OI24kVj2l+N3LaBNYWvh2B22So1/c0SOeRKgLLs/B8/ILmTjt84z niU2kQVtt1tZLUsxoiUJ8CRMP7oRZDHlao3B9ksc9Ntsi4Prt/7FG9CbiO0UaqqMd9s3 Bn39IyACj6SDVB9nD/gcvy4eOLFVZBvbFgzXhcEDKxjZkBxtZo46I9gp8i6GMV77dIjp BygA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742862729; x=1743467529; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=6tNvaKg0Qe6jhXzt106uDehwc4pYd2ePVqkw6nKnZJY=; b=o4GUyfuMJY45/OmRaNuGIu3D5R889P5hEbvR3PajlV0Ujj/iVmlreZjy4itgV2AyFB krnDtZmeUMQKGY801PRwdcZow8pJ3WU6zVFLyGMBFyXbUnpFe33EGeRCeqQ15mC0tKhh A4VVnSDMMQfCX14dpqki7kVltLfNfrMZ5JxYozf9t+KJFGGytuAweTvRopHGOogDUBQ7 W1WboL19iCoip3V+XgmRNis/vI9KVvhhfjoGz9/gm/bvpJvoqRcp3kw8doGQ+EM3HS1B Qb2b0ZHem1ZiGt2tVjOuqywG2brA8tCFDnFz2YFKp2Sf6ibapJGzfSuMdQt0S0qfRAhc 8Suw== X-Gm-Message-State: AOJu0YzHDBzEsjokp3GyXEzJtXwZS2RSPb649JtRoKeJJ1NO5W1re0Zt x8KNpFyYEA2EGNG8lR1QH3bIuEjARoTwME+Q2wSug6esyVtAg3bURqDMAdjbHLSMQv1OWA3hcIi 03jtw5Nd+U2ZSuYr3oUxrnrhsU9BTMR+mdhmzLQcz X-Gm-Gg: ASbGnctz5s2aQsvijs1gI4RXIRDK4bS4oAKgiVTn86hEvbt2kfvT2L9HtXzMKh5umy1 qWekY/H1MPXmPn65wpdBh/yiwVDk3WvkDliYDYOvU1BZ0An4R3H5ic93UEPUbmGWTJB3m9ReS6W /S9uGzYbhBpb+sb0vDtzRtlg9m X-Google-Smtp-Source: AGHT+IG+NasBVUWKhp8nIMAoHFMYo7fnU2AQnt/LX+WfZE9yPEm/FRHAqZwsL4gGUbRDMBh7J6Kcb/SLmgqtRxMnLg0= X-Received: by 2002:a17:90b:1802:b0:2fe:8fc4:6f4b with SMTP id 98e67ed59e1d1-3030fe98a52mr20627496a91.8.1742862728632; Mon, 24 Mar 2025 17:32:08 -0700 (PDT) MIME-Version: 1.0 From: Phillip Diffley Date: Mon, 24 Mar 2025 19:31:57 -0500 X-Gm-Features: AQ5f1JpNIVo5qiLcTDAxwvYQEPNINTNfhtBbrMsP_8JFR8FredN9FbNkg7QcdgI Message-ID: Subject: Create replication slot options To: pgsql-general@postgresql.org Content-Type: multipart/alternative; boundary="000000000000d527b606311fd954" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000d527b606311fd954 Content-Type: text/plain; charset="UTF-8" I am testing out some streaming logical replication commands and am having trouble specifying options when calling CREATE_REPLICATION_SLOT . I connect to the database with psql "dbname=replication_test_db replication=database" Then I am able to successfully run CREATE_REPLICATION_SLOT test_slot LOGICAL pgoutput; But if I try to specify the snapshot option with CREATE_REPLICATION_SLOT test_slot_2 LOGICAL pgoutput SNAPSHOT 'nothing'; the command fails with "ERROR: syntax error" I have tried several combinations of brackets commas and equals signs but have not been able to get the command with additional options to work. What is the right syntax to use here? Thanks, Phillip --000000000000d527b606311fd954 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I am testing out some streaming logical replication comman= ds and am having trouble specifying options when calling CREATE_REPLICATION_SLOT.

I connect to the database with
psql "dbname=3Dreplication_= test_db replication=3Ddatabase"

Then I am able = to successfully run
CREATE_REPLICATION_SLOT test_slot LOGICAL pgoutput= ;

But if I try to specify the snapshot option with
CREATE_REPLICA= TION_SLOT test_slot_2 LOGICAL pgoutput SNAPSHOT 'nothing';
= the command fails with "ERROR: =C2=A0syntax error"

=
I have tried several combinations of brackets commas and equals = signs but have not been able to get the command with additional options to = work. What is the right syntax to use here?

Thanks= ,
Phillip

--000000000000d527b606311fd954--