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 1rOn9b-0077Tw-4h for pgsql-general@arkaria.postgresql.org; Sat, 13 Jan 2024 23:11:03 +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 1rOn9Z-009zGC-OV for pgsql-general@arkaria.postgresql.org; Sat, 13 Jan 2024 23:11:01 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::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 1rOn9Z-009zG3-Dd for pgsql-general@lists.postgresql.org; Sat, 13 Jan 2024 23:11:01 +0000 Received: from mail-pg1-x52a.google.com ([2607:f8b0:4864:20::52a]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1rOn9S-001PCW-Nx for pgsql-general@postgresql.org; Sat, 13 Jan 2024 23:11:00 +0000 Received: by mail-pg1-x52a.google.com with SMTP id 41be03b00d2f7-5ca29c131ebso5733258a12.0 for ; Sat, 13 Jan 2024 15:10:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hasura.io; s=google; t=1705187454; x=1705792254; darn=postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=aQvPeh6EPO1XuXCgcHtl/lQ5CvqSTp7Z9JYHI+gWKTg=; b=kJmf+z9f4hsNdLL+KD8OAw4Owz1xq+6zCnSgzIgBl/W2vLY3Lj5IDW7cse4Aps5FBw U5oqa75irWclSMaNdp+JazuSH40qo3coxXTREYyAO5dMcAvE8HboHHAHCz/aTO/nvU14 qMsRUlewKqbHR9OuQWgR4BPV3oGXcLNcjkhvdwzLELrEfbgueyJQ8alJUKrA2+R6m7M7 IIUq9VwPgAwpgoVtsSnTVhe4gj3II58gYkKjtXr5DH7X1PBz53zflmdnGg4HjbAUB4DH OIj9871IvEOMBdb6hIFIArAvhBuJkHzKx/vg1ibY8kM+D/pd0sjvIpw6uvo2HUfWLyT+ cAlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705187454; x=1705792254; h=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=aQvPeh6EPO1XuXCgcHtl/lQ5CvqSTp7Z9JYHI+gWKTg=; b=XTopJ0z+k+4RyPuTiZb3AmaevAFiOfQinGCitL6hVqdXdM4ErAe2uyS9g0CCLwbJa2 0EBs0bqZd4EwKhugQRZu+jnTW6nex0QxRXBlYoy0j+4tBN4Jobvvows/SP+wa9qHZAUL 0xKhPOBUe8iA61GbaHFKWVG7tvTxKqru71O96wmQDM7qW1lfSV8dbhp2HDVce0trIf+E hhrbd3Hf5HodFD9DGjunjPZsUM/Dk24uFyz0U2rpIXuzR3icZ8VgPeVXe4559mIn2Crk NwKNVQVuSiAQ8K4I1CBclRdg5ONOVUu22w1OlUnwWp3iKOcHXwbFEXx1Kdb77+rmbmN8 5AFQ== X-Gm-Message-State: AOJu0Yz1hXz0ZOT8rwYCZVFifgsFXW9w8c1sqZ/jUT9RU2m45XWdrEbC wvf5EBfUxJPsK/alja2NDeua6Wlec/RBgKrLGJsZjoJIePK4xw== X-Google-Smtp-Source: AGHT+IFlgrwV87Hw1FcURLhDh2ZrnKgzXKdZIwcep9k/CV1v/8kPKCn1NCCohtLR510BfYbiggv4x0Gx7iG/VukFIJk= X-Received: by 2002:a05:6a20:9c88:b0:19a:999c:6657 with SMTP id mj8-20020a056a209c8800b0019a999c6657mr3172478pzb.72.1705187453933; Sat, 13 Jan 2024 15:10:53 -0800 (PST) MIME-Version: 1.0 References: <3567b5db-19e4-48ff-ac6d-60a2439a1b8b@aklaver.com> In-Reply-To: From: David Ventimiglia Date: Sat, 13 Jan 2024 17:10:42 -0600 Message-ID: Subject: Re: How to redirect output from PostgreSQL pg_recvlogical to a file or a pipe? To: Ron Johnson Cc: pgsql-general Content-Type: multipart/alternative; boundary="00000000000077ae5e060edbe48c" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --00000000000077ae5e060edbe48c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I'm asking a question about technology. It has an answer. Whatever that answer is, it's independent of anyone's purpose. On Sat, Jan 13, 2024, 4:53=E2=80=AFPM Ron Johnson = wrote: > *No,* that's a technology problem. What is the purpose of storing them > back in the database using psql? > > On Sat, Jan 13, 2024 at 4:34=E2=80=AFPM David Ventimiglia < > davidaventimiglia@hasura.io> wrote: > >> The business problem I'm trying to solve is: >> >> "How do I capture logical decoding events with the wal2json output >> encoder, filter them with jq, and pipe them to psql, using pg_recvlogica= l?" >> >>> >>>>> --00000000000077ae5e060edbe48c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I'm asking a question about technology. It has an ans= wer. Whatever that answer is, it's independent of anyone's purpose.=

= On Sat, Jan 13, 2024, 4:53=E2=80=AFPM Ron Johnson <ronljohnsonjr@gm= ail.com> wrote:
No, that's a technology problem.=C2=A0 What is the pur= pose of storing them back in the database using psql?

On Sat, Jan 13, 2024= at 4:34=E2=80=AFPM David Ventimiglia <davidaventimi= glia@hasura.io> wrote:
The business problem I'm trying to solv= e is:

"How do I capture l= ogical decoding events with the wal2json output encoder, filter them with j= q, and pipe them to psql, using pg_recvlogical?"

--00000000000077ae5e060edbe48c--