Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nMCZr-0002SW-I8 for pgsql-admin@arkaria.postgresql.org; Mon, 21 Feb 2022 17:34:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nMCZq-0001JY-CG for pgsql-admin@arkaria.postgresql.org; Mon, 21 Feb 2022 17:34:22 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nMCZp-0001JP-W7 for pgsql-admin@lists.postgresql.org; Mon, 21 Feb 2022 17:34:22 +0000 Received: from mail-oo1-xc35.google.com ([2607:f8b0:4864:20::c35]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nMCZk-0005pf-3w for pgsql-admin@lists.postgresql.org; Mon, 21 Feb 2022 17:34:20 +0000 Received: by mail-oo1-xc35.google.com with SMTP id k13-20020a4a948d000000b003172f2f6bdfso14109531ooi.1 for ; Mon, 21 Feb 2022 09:34:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=znPGxiOsqubAw9VxJncg1XW/nGtd4yAEtuR4nW75P3Y=; b=FhAqcuBIoXkid4xYMTlqvPdVlR6yT4jh23mb/s75DRlJTefafGoj8TgFAnABXbX8x9 XLbcA/HdLblc5VYB8eSGJRk+0LJG2LJ9W+b3fDTiUQH/abQ6HNOCN0J+QqEVzYiSdUX6 CYv11atX26tJsRYHU3Yi/9Q585n8Iq5NI0wZ97rs1EwOv3SSxeaWwOIjA4yZ/fSKqh1+ jdfCgy4KpRXfNVeoV42VYixoj7qwMkJ1OAZ+Q+zPfHxZnA1R1iH5zm/pJbgFkwajm31C 2iLVNy0xmhy3vyAabRZ6cF3O/+EIUeMGwsyxPD6OhJTjhGaXU9Ujm628/uWHuEQhZvba nQZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=znPGxiOsqubAw9VxJncg1XW/nGtd4yAEtuR4nW75P3Y=; b=3w0v3wR8FlItREs4BAS4B5jMwB2miEtlIDuaYoTlfnjZGR6SpHBF3gkfI0LveqKpUZ hdFKNLtP6IKCzfasQyPHOcuFbmMPkez246+g44uK47V/4mRA7BUbp/PuEpheJYErHn/P Av3ayfzPz74DyxSwSCCnYXfD5D/1cFQE2DetIJCFfmw8v5PKGcjZZzjlY0C8XMmRkZK6 XHl7y1WPcNI1O2G4FDLvxW0BKfTWXxS3U9+exkd2hj0mV8urENSRm2mHmq+jUVjPfxu4 EtH7Of8PdIDPpi+NtVMH5tvRXJ/ESPKOYU2mQKv3U6bOKPO0nO0a7o3JAEEEI+J9H03i jzEA== X-Gm-Message-State: AOAM531EMz68OXkAvgfkfTPHWzz7b1+YbbRC9lEl0z/iWp2976wNP4S5 oitEddPuYVlqKFrn+cbz5TYsWmUjYlQ= X-Google-Smtp-Source: ABdhPJzLj/QigIHG/YCGJyOZC7poiK9RyzWHYGc6Dfp+zPr1+cH7+u8m16JHQQns6ZaeutJkRY2Vig== X-Received: by 2002:a05:6870:5309:b0:ce:c0c9:630 with SMTP id j9-20020a056870530900b000cec0c90630mr43181oan.130.1645464854537; Mon, 21 Feb 2022 09:34:14 -0800 (PST) Received: from [192.168.88.10] (ip68-11-68-85.no.no.cox.net. [68.11.68.85]) by smtp.googlemail.com with ESMTPSA id o13sm7130721oiw.17.2022.02.21.09.34.13 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 21 Feb 2022 09:34:14 -0800 (PST) Subject: Re: Can't drop subscription To: pgsql-admin@lists.postgresql.org References: <68BABAB6-10DC-476A-8A16-39D94F231834@Chaos1.DE> From: Ron Message-ID: <0e2455bb-8253-676c-63cb-98f3c1a634ac@gmail.com> Date: Mon, 21 Feb 2022 11:34:13 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: <68BABAB6-10DC-476A-8A16-39D94F231834@Chaos1.DE> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2/21/22 11:28 AM, Axel Rau wrote: > While following this receipt: > https://elephanttamer.net/?p=58 > I’ getting: > ERROR: subscription \"meteo\" does not exist“ > with this command: > psql -c \"DROP SUBSCRIPTION meteo\“ Why the backslashes, instead of: psql -c "DROP SUBSCRIPTION meteo;“ (Presumably you're defining the host and database in PG* environment variables?) > Same on both subscribers: > - - - > operations=# select oid,subdbid,subname,subowner,subenabled,subslotname,subpublications from pg_catalog.pg_subscription; > oid | subdbid | subname | subowner | subenabled | subslotname | subpublications > -------+---------+---------+----------+------------+-------------+----------------- > 16451 | 16388 | meteo | 10 | t | meteo_dbb4 | {meteo} > (1 row) > - - - > operations=# select oid,subdbid,subname,subowner,subenabled,subslotname,subpublications from pg_catalog.pg_subscription; > oid | subdbid | subname | subowner | subenabled | subslotname | subpublications > -------+---------+---------+----------+------------+-------------+----------------- > 16455 | 16388 | meteo | 16384 | t | meteo_dbb5 | {meteo} > (1 row) > - - - > > How can I drop the subscriptions? > > Shouldn’t there be 2 different subscriptions for 2 subscribers to the same publisher? > > Any help appreciated, > Axel > --- > PGP-Key: CDE74120 ☀ computing @ chaos claudius > > > -- Angular momentum makes the world go 'round.