Thread: Re: Errors of a Postgresql replication with PowerBi
On Tue, Feb 11, 2025 at 2:17 AM Erik Serrano <eserranos@gmail.com> wrote:
Dear Postgresql community,
Along with greetings, I would like to consult a problem related to a streaming replication slave server in Postgresql version 15 that is being used as a server for PowerBi queries.
I have been receiving some comments about errors in PBi queries that fail because they have problems with replication.
The configuration of that server is basic (it has some additional parameters) but I think that some additional configuration can be done that allows me to improve the performance of the queries.
I attach the errors that normally appear to me and my configuration file.
I hope you can help me or guide me in a possible solution
Thank you very much in advance
In the _004.jpg file, I see integer underflow. Or integer overflow that wraps around to negative 2.1 billion.
Maybe that column needs to be a BIGINT, and the PBI code needs to use int8?
Death to <Redacted>, and butter sauce.
Don't boil me, I'm still alive.
<Redacted> lobster!
Dear Ron,
Excellent assessment Ron, Thank you very much ... I will share it with the architect.
Thank you very much
Erik R. Serrano Saavedra
Data Base Administrator
El mar, 11 feb 2025 a las 10:48, Ron Johnson (<ronljohnsonjr@gmail.com>) escribió:
On Tue, Feb 11, 2025 at 2:17 AM Erik Serrano <eserranos@gmail.com> wrote:--Dear Postgresql community,
Along with greetings, I would like to consult a problem related to a streaming replication slave server in Postgresql version 15 that is being used as a server for PowerBi queries.
I have been receiving some comments about errors in PBi queries that fail because they have problems with replication.
The configuration of that server is basic (it has some additional parameters) but I think that some additional configuration can be done that allows me to improve the performance of the queries.
I attach the errors that normally appear to me and my configuration file.
I hope you can help me or guide me in a possible solution
Thank you very much in advanceIn the _004.jpg file, I see integer underflow. Or integer overflow that wraps around to negative 2.1 billion.Maybe that column needs to be a BIGINT, and the PBI code needs to use int8?Death to <Redacted>, and butter sauce.Don't boil me, I'm still alive.<Redacted> lobster!
On Tue, 2025-02-11 at 08:48 -0500, Ron Johnson wrote: > On Tue, Feb 11, 2025 at 2:17 AM Erik Serrano <eserranos@gmail.com> wrote: > > Along with greetings, I would like to consult a problem related to a streaming replication > > slave server in Postgresql version 15 that is being used as a server for PowerBi queries. > > In the _004.jpg file, I see integer underflow. Or integer overflow that wraps around to negative 2.1 billion. > > Maybe that column needs to be a BIGINT, and the PBI code needs to use int8? I see the following error in one image: canceling statement due to conflict with recovery If you want to avoid that error and don't mind if replay of changes to the standby server gets delayed, set "max_standby_streaming_delay" to -1. Yours, Laurenz Albe -- *E-Mail Disclaimer* Der Inhalt dieser E-Mail ist ausschliesslich fuer den bezeichneten Adressaten bestimmt. Wenn Sie nicht der vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein sollten, so beachten Sie bitte, dass jede Form der Kenntnisnahme, Veroeffentlichung, Vervielfaeltigung oder Weitergabe des Inhalts dieser E-Mail unzulaessig ist. Wir bitten Sie, sich in diesem Fall mit dem Absender der E-Mail in Verbindung zu setzen. *CONFIDENTIALITY NOTICE & DISCLAIMER *This message and any attachment are confidential and may be privileged or otherwise protected from disclosure and solely for the use of the person(s) or entity to whom it is intended. If you have received this message in error and are not the intended recipient, please notify the sender immediately and delete this message and any attachment from your system. If you are not the intended recipient, be advised that any use of this message is prohibited and may be unlawful, and you must not copy this message or attachment or disclose the contents to any other person.
Excellent Laurens, Currently I have this parameter at 180s, but I think it would be better at -1 to make it more dynamic,
I will apply it
Thank you very much
Erik R. Serrano Saavedra
Data Base Administrator
El mar, 11 feb 2025 a las 11:08, Laurenz Albe (<laurenz.albe@cybertec.at>) escribió:
On Tue, 2025-02-11 at 08:48 -0500, Ron Johnson wrote:
> On Tue, Feb 11, 2025 at 2:17 AM Erik Serrano <eserranos@gmail.com> wrote:
> > Along with greetings, I would like to consult a problem related to a streaming replication
> > slave server in Postgresql version 15 that is being used as a server for PowerBi queries.
>
> In the _004.jpg file, I see integer underflow. Or integer overflow that wraps around to negative 2.1 billion.
>
> Maybe that column needs to be a BIGINT, and the PBI code needs to use int8?
I see the following error in one image:
canceling statement due to conflict with recovery
If you want to avoid that error and don't mind if replay of changes to
the standby server gets delayed, set "max_standby_streaming_delay" to -1.
Yours,
Laurenz Albe
--
*E-Mail Disclaimer*
Der Inhalt dieser E-Mail ist ausschliesslich fuer den
bezeichneten Adressaten bestimmt. Wenn Sie nicht der vorgesehene Adressat
dieser E-Mail oder dessen Vertreter sein sollten, so beachten Sie bitte,
dass jede Form der Kenntnisnahme, Veroeffentlichung, Vervielfaeltigung oder
Weitergabe des Inhalts dieser E-Mail unzulaessig ist. Wir bitten Sie, sich
in diesem Fall mit dem Absender der E-Mail in Verbindung zu setzen.
*CONFIDENTIALITY NOTICE & DISCLAIMER
*This message and any attachment are
confidential and may be privileged or otherwise protected from disclosure
and solely for the use of the person(s) or entity to whom it is intended.
If you have received this message in error and are not the intended
recipient, please notify the sender immediately and delete this message and
any attachment from your system. If you are not the intended recipient, be
advised that any use of this message is prohibited and may be unlawful, and
you must not copy this message or attachment or disclose the contents to
any other person.