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 1uINSK-003Mdz-Ti for pgsql-admin@arkaria.postgresql.org; Fri, 23 May 2025 08:08:41 +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 1uINSJ-00GdyW-59 for pgsql-admin@arkaria.postgresql.org; Fri, 23 May 2025 08:08:38 +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 1uINSI-00GdyO-J2 for pgsql-admin@lists.postgresql.org; Fri, 23 May 2025 08:08:38 +0000 Received: from mail-yw1-x1129.google.com ([2607:f8b0:4864:20::1129]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uINSG-000Tds-0l for pgsql-admin@postgresql.org; Fri, 23 May 2025 08:08:37 +0000 Received: by mail-yw1-x1129.google.com with SMTP id 00721157ae682-70cb3121db3so62953397b3.3 for ; Fri, 23 May 2025 01:08:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1747987716; x=1748592516; darn=postgresql.org; h=mime-version:content-language:accept-language:in-reply-to :references:message-id:date:thread-index:thread-topic:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=k/LDKFxGIWXl5iKzRM6EwlzkgRhe8Hd4RZyiFZLQrR4=; b=l12G2unJ8P8R6J5R7NCULECRE+P1wjOPGfKApWsIKrl+jQM4xlGXJfp4bUlTu8cliu YRbeZbGylfe46uDKDimxmpRZvJrGJKgTjs75+ggVhK2VjxCnDwwl81kk7DXJBUyt4rw6 UoHVn2GTJ60fCD4cl/ur3M/hQn67CRCsQyOko4r4OP9HVYBpDo3prB/q87ahUZOg4l7r RDeVdZxkG8kuds27DgeFJu3CLMPQ/tfOihj5UujXOLPyn6JqJOLeHSucLhtVRDDcV1OT mcCSUk2epZZljp+OTIRa5yRERebWPe617Pb2pZd0sQb9WoeYqOhlxfGSF5d/IjeLV1g4 gtHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747987716; x=1748592516; h=mime-version:content-language:accept-language:in-reply-to :references:message-id:date:thread-index:thread-topic:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=k/LDKFxGIWXl5iKzRM6EwlzkgRhe8Hd4RZyiFZLQrR4=; b=Pw51c18xJc3DeRR+D5L0ftB16C8LCBeT1SmZS0Z0aU7H22eJJEU93J3V6XFNaFSe73 GSf7yXX2l3jRs7H2a8JH82/LmcaU72jGmNl/5SkeGpwU+w/LGTHM5EWH3Ez4zW6RuibA xaHnLay6FhEmKqzqAXZpzvjGsSd0EM5dE8jY/anGeOhYZrztBF+XoFzCFQRqBgk02sea NG6EtlmSWept1J0d2OTjWosEc+DKuouAouq1LZ6tkYT2MlFtXSNoB8AbfRudRDsL5o06 SXTyhRXv3/jNm4hkyMISYeTfAzU8bSibUv9CCUI+AtXFv08VsAVYOlFWuknA+6V1u6JZ 3Low== X-Forwarded-Encrypted: i=1; AJvYcCXkVOiFpZNRc2cn95NQYC2cMWngVlmzgR7vHLjk0ck9zpVvlMBbWpYEVkR54JYFFjDQ4IrBJInakD1gCg==@postgresql.org X-Gm-Message-State: AOJu0YzyECmyY5ASAZLxdiPqlxOaZQnV/6D3HR9/ZaEWPqILVpguSAGz p6eGoJq1yA0b7xQu1agsUHBQjM8YZ1rbquqlxlOdEEZkNyrRAdO2dAz6 X-Gm-Gg: ASbGncvRK2Qde4x34GhlFyLDnWOXUwyN6R3t5X7dWAu9qp1CMzc+LxSuIBNriWaXOfK WU6RAIoRcWIAssQtArb0YET41Ot9VAbJB/XkZi6KQLC6WMMarb8cjNqlxycXhV6juZjuaZV4Wgt iriXUg5LxiK7umNl0U+JwKIDamxArBnjzCTxp+wBRrscO9l86sw+pG3SXHJh+4TTGfMsXtrdhHw Xop9CmTge23FzeVzyi+sJycJV7tciiYE242LQyOh0Xydoi7p0DxpQmvpQHagm5yKMAuEvu9hOoP BFRhB90VtallprPOvzzSGMqCb6iT+c3QxhKcMyP2rJsWfGA3nkGXD2m89rSwYiAYeX7tmffOs0s UjLtOcrRlUDdt3jD264XiXqVlH6+vKRL80HocDqtu7eFGKaLnDrVcSA== X-Google-Smtp-Source: AGHT+IGBZga76soOIpB6Uvmzvu5ImRYrpfIXwd+fhMqrkEMXYStsbly253RMT91Ecd3HSgzdmWDaaA== X-Received: by 2002:a05:690c:4d49:b0:70e:16a3:ce77 with SMTP id 00721157ae682-70e16a3d565mr46205707b3.6.1747987715576; Fri, 23 May 2025 01:08:35 -0700 (PDT) Received: from AS4PR03MB8506.eurprd03.prod.outlook.com ([2603:1026:c03:7052::5]) by smtp.gmail.com with ESMTPSA id 00721157ae682-70e07dc91b9sm5885627b3.39.2025.05.23.01.08.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 May 2025 01:08:35 -0700 (PDT) From: David Okeamah To: Wasim Devale , pgsql-admin , Pgsql-admin Subject: Re: Replication lag Thread-Topic: Replication lag Thread-Index: AVFXdm5VH7LGsQN0MNH6nmnT1TDFaJTohoKY X-MS-Exchange-MessageSentRepresentingType: 1 Date: Fri, 23 May 2025 08:08:33 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-GB X-MS-Has-Attach: X-MS-Exchange-Organization-SCL: -1 X-MS-TNEF-Correlator: X-MS-Exchange-Organization-RecordReviewCfmType: 0 x-ms-reactions: allow Content-Type: multipart/alternative; boundary="_000_AS4PR03MB8506AFDDDE719261B0E1ADDDF798AAS4PR03MB8506eurp_" MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --_000_AS4PR03MB8506AFDDDE719261B0E1ADDDF798AAS4PR03MB8506eurp_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Query Execution and Reply WAL Coexistence in PostgreSQL Wasim, Thanks for your question. Yes, PostgreSQL does support concurrent WAL replay and read query execution= on replicas through its hot standby feature. By setting hot_standby =3D on= , a replica can serve read-only queries while applying WAL files from the p= rimary via streaming replication. However, there are a few caveats: * Read queries on the standby may be canceled if they conflict with rec= overy operations. This behavior can be tuned using parameters like max_stan= dby_streaming_delay and hot_standby_feedback. * Unlike Oracle GoldenGate, PostgreSQL=92s native logical replication i= s more limited in terms of conflict resolution and cross-version replicatio= n, though tools like pglogical or Debezium can bridge those gaps for more c= omplex use cases. Best regards, David Okeamah DAVID OKEAMAH,DEVELOPER ________________________________ From: Wasim Devale Sent: Friday, May 23, 2025 8:13:10 AM To: pgsql-admin ; Pgsql-admin Subject: Replication lag Hello, Reply wal and query execution on replica can coexists? Golden gate in oracle has this feature that they can coexists but in postgr= esql do we have any provision like this. Please assist. Thanks, Wasim --_000_AS4PR03MB8506AFDDDE719261B0E1ADDDF798AAS4PR03MB8506eurp_ Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable

Query Execution and Reply WAL Coexistence in PostgreSQL


 Wasim,





  • Read queries on the standby may be canceled if they conflict with recovery = operations. This behavior can be tuned using parameters like max_standby_st= reaming_delay and hot_standby_feedback.
  • Unlike Oracle GoldenGate, PostgreSQL=92s native logical replication is more= limited in terms of conflict resolution and cross-version replication, tho= ugh tools like pglogical or Debezium can bridge those gaps for more complex= use cases.






DAVID OKEAMAH,DEVELOPER 

From: Wasim Devale <wasi= md60@gmail.com>
Sent: Friday, May 23, 2025 8:13:10 AM
To: pgsql-admin <pgsql-admin@postgresql.org>; Pgsql-admin <= pgsql-admin@lists.postgresql.org>
Subject: Replication lag
 
Hello,

Reply wal and query execution on replica can coexists?

Golden gate in oracle has this feature that they can coex= ists but in postgresql do we have any provision like this.

Please assist.

Thanks,
Wasim
--_000_AS4PR03MB8506AFDDDE719261B0E1ADDDF798AAS4PR03MB8506eurp_--