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 1nLSp1-00015y-2e for pgsql-general@arkaria.postgresql.org; Sat, 19 Feb 2022 16:42:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nLSoz-00089d-Rl for pgsql-general@arkaria.postgresql.org; Sat, 19 Feb 2022 16:42:57 +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 1nLSoz-00089T-H8 for pgsql-general@lists.postgresql.org; Sat, 19 Feb 2022 16:42:57 +0000 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nLSow-0000El-L7 for pgsql-general@lists.postgresql.org; Sat, 19 Feb 2022 16:42:56 +0000 Received: by mail-wr1-x42a.google.com with SMTP id d3so3992244wrf.1 for ; Sat, 19 Feb 2022 08:42:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sqlpipe.com; s=google; h=from:mime-version:subject:message-id:date:to; bh=Hig9zxAJqN4D/DRORJiTaFM6QKFM0Vxl+hR0o8HlpMk=; b=FACEIedZZfN3TtLzupKUOJhedL8JYNQP8a8rzsg58FcPr5zmLPALlDN0H2j/zLFa2E Q4zzxq1DxX/NhIcVw6BplPTqgObFTNPRoNtMVytBp7hkSaaUHNZkSWvnwp6I79AbPAdl 2E4XiIv0/+7NshZP+yeqGgszuIGVaIawz0e3i7+T07lXSTH5bwZ6XHcnDd+j6Tzc3/v+ VT4OxvtQ+8TjH8d5LD8OApaacnwlo3Coyb+L6iluDbNMf0+B3B9Jb/LIIW5Yt8VqeSw3 UJnDFxdzmrjlm/kh9wkjqHDa2zvEixB3zzjzeURzq2v47TtBcE/kj5THLGAfDVMZnZ9X ftQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:mime-version:subject:message-id:date:to; bh=Hig9zxAJqN4D/DRORJiTaFM6QKFM0Vxl+hR0o8HlpMk=; b=Adig/5NyPEHVmY5VadOdVPG/ZKHtfHG7E37h7bnDj57TItu3JY2pxAj1iejr0nEq3W 3ZAvYOx7ghZlRBfqREOiXug/WkpcRqY4Q3LfBz8RboGJrSmnquQKpAqj9vywUhnTCMcs HRZToWUsdlQmliW8I6sLsqJN5MVNyH4NbvZHP4N57IBSRZksFE61xV94JJ5P4B/BgAri F1RC3DZdz/OzssdJK1mJ0SC/DoEsZj+gZspilu2PqkfkQTgi7tVQQZddm802F20UU5i5 OECQMD1sXBSt+krmTN0Ejc2P/rKdoT6OD5HjkTikEvmj4QHyB2y/eHqTDxi7o00zbScd 1jvw== X-Gm-Message-State: AOAM5300sB1oG2AhjxkPNdT3UFJBHvV2f+ZuBc4WMCecFgCTkUSRC5v1 +00FOxtyvUmFGqbBAq8+ajfBPzWlxr9XyetkpoE= X-Google-Smtp-Source: ABdhPJwLcrSEXLVpRX37z2rybq8O3iJ/uEeXxQR0e4d/8X4vPhJDRsxsj63i5+F1at3Y8/VdVoXS/A== X-Received: by 2002:a5d:4b43:0:b0:1e4:2deb:59e6 with SMTP id w3-20020a5d4b43000000b001e42deb59e6mr9623190wrs.515.1645288972878; Sat, 19 Feb 2022 08:42:52 -0800 (PST) Received: from smtpclient.apple (103.203.63.94.rev.vodafone.pt. [94.63.203.103]) by smtp.gmail.com with ESMTPSA id 1sm22558792wrz.75.2022.02.19.08.42.52 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 19 Feb 2022 08:42:52 -0800 (PST) From: Cal Mitchell Content-Type: multipart/alternative; boundary="Apple-Mail=_7A62F566-8436-4964-BFD6-4AD8C603A33C" Mime-Version: 1.0 (Mac OS X Mail 15.0 \(3693.40.0.1.81\)) Subject: Detecting schema changes via WAL logs Message-Id: Date: Sat, 19 Feb 2022 16:42:51 +0000 To: pgsql-general@lists.postgresql.org X-Mailer: Apple Mail (2.3693.40.0.1.81) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --Apple-Mail=_7A62F566-8436-4964-BFD6-4AD8C603A33C Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hello everyone, I=E2=80=99m building an open-source data integration tool (SQLpipe) and = am now trying to incorporate CDC into the product. Is it possible to detect when schema changes happen via the WAL? The WAL = doesn=E2=80=99t have to tell me what was changed, it just needs to tell = me when something changed. For example, anytime I run create table or some other DDL command, there = is a begin and commit message in the log, with nothing in between. If = there aren=E2=80=99t any other operations that create such =E2=80=9Cempty=E2= =80=9D logs, it seems possible to just re-scan the tables that are being = synced for schema changes whenever one of these logs is encountered.= --Apple-Mail=_7A62F566-8436-4964-BFD6-4AD8C603A33C Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Hello everyone,

I=E2=80=99m = building an open-source data integration tool (SQLpipe) and am now trying to = incorporate CDC into the product.

Is it possible to = detect when schema changes happen via the WAL? The WAL doesn=E2=80=99t = have to tell me what was changed, it just = needs to tell me when something = changed.

For example, anytime I = run create table or some other DDL command, there is a begin and commit message in the log, with = nothing in between. If there aren=E2=80=99t any other operations that = create such =E2=80=9Cempty=E2=80=9D logs, it seems possible to just = re-scan the tables that are being synced for schema changes whenever one = of these logs is encountered.
= --Apple-Mail=_7A62F566-8436-4964-BFD6-4AD8C603A33C--