public inbox for [email protected]  
help / color / mirror / Atom feed
Errors of a Postgresql replication with PowerBi
7+ messages / 4 participants
[nested] [flat]

* Errors of a Postgresql replication with PowerBi
@ 2025-02-10 21:10 Erik Serrano <[email protected]>
  2025-02-11 07:41 ` RE: Errors of a Postgresql replication with PowerBi Mendbayar Alzakhgui <[email protected]>
  2025-02-11 13:48 ` Re: Errors of a Postgresql replication with PowerBi Ron Johnson <[email protected]>
  0 siblings, 2 replies; 7+ messages in thread

From: Erik Serrano @ 2025-02-10 21:10 UTC (permalink / raw)
  To: Pgsql-admin <[email protected]>; [email protected]

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

Regards



*Erik R. Serrano Saavedra*
*      Data Base Administrator*


Attachments:

  [application/octet-stream] postgresql.conf (28.9K, 3-postgresql.conf)
  download

  [image/jpeg] jira replica power bi - error_002.jpg (70.4K, 4-jira%20replica%20power%20bi%20-%20error_002.jpg)
  download | view image

  [image/jpeg] jira replica power bi - error_001.jpg (11.0K, 5-jira%20replica%20power%20bi%20-%20error_001.jpg)
  download | view image

  [image/png] jira replica power bi - error_003.png (42.9K, 6-jira%20replica%20power%20bi%20-%20error_003.png)
  download | view image

  [image/png] jira replica power bi - error_004.png (323.6K, 7-jira%20replica%20power%20bi%20-%20error_004.png)
  download | view image

^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* RE: Errors of a Postgresql replication with PowerBi
  2025-02-10 21:10 Errors of a Postgresql replication with PowerBi Erik Serrano <[email protected]>
@ 2025-02-11 07:41 ` Mendbayar Alzakhgui <[email protected]>
  2025-02-11 12:45   ` Re: Errors of a Postgresql replication with PowerBi Erik Serrano <[email protected]>
  1 sibling, 1 reply; 7+ messages in thread

From: Mendbayar Alzakhgui @ 2025-02-11 07:41 UTC (permalink / raw)
  To: Erik Serrano <[email protected]>; Pgsql-admin <[email protected]>; [email protected] <[email protected]>

Hi Erik,

I’m not an expert on Postgres, but I found out that configuration tuning needed on the Postgresql server, like shared_buffers, work mem etc.
And from the logs you’ve provided I’ve seen it like the replica server has failed somehow, check connection and need to check if it’s alive from the primary server like

select * from pg_stat_replication_slots;
select * from pg_replication_slots;

And better to check if the replica has error log on it.

Sincerely,

Mendbayar A.

From: Erik Serrano <[email protected]>
Sent: Tuesday, February 11, 2025 5:11 AM
To: Pgsql-admin <[email protected]>; [email protected]
Subject: Errors of a Postgresql replication with PowerBi

You don't often get email from [email protected]<mailto:[email protected]>. Learn why this is important<https://aka.ms/LearnAboutSenderIdentification;
ТУХАЙН ИЛГЭЭГЧ НЬ МАНАЙ ХАРИЛЦАГЧИЙН ИМЭЙЛ БИШ БАЙНА!!
Сэжигтэй тохиолдолд "[email protected]<mailto:[email protected]>" рүү заавал мэдэгдэнэ үү.

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

Regards


Erik R. Serrano Saavedra
      Data Base Administrator



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re: Errors of a Postgresql replication with PowerBi
  2025-02-10 21:10 Errors of a Postgresql replication with PowerBi Erik Serrano <[email protected]>
  2025-02-11 07:41 ` RE: Errors of a Postgresql replication with PowerBi Mendbayar Alzakhgui <[email protected]>
@ 2025-02-11 12:45   ` Erik Serrano <[email protected]>
  0 siblings, 0 replies; 7+ messages in thread

From: Erik Serrano @ 2025-02-11 12:45 UTC (permalink / raw)
  To: Mendbayar Alzakhgui <[email protected]>; +Cc: Pgsql-admin <[email protected]>; [email protected] <[email protected]>

Thank you for your help!


*Erik R. Serrano Saavedra*
*      Data Base Administrator*


El mar, 11 feb 2025 a las 4:41, Mendbayar Alzakhgui (<
[email protected]>) escribió:

> Hi Erik,
>
> I’m not an expert on Postgres, but I found out that configuration tuning
> needed on the Postgresql server, like shared_buffers, work mem etc.
>
> And from the logs you’ve provided I’ve seen it like the replica server has
> failed somehow, check connection and need to check if it’s alive from the
> primary server like
>
>
>
> select * from pg_stat_replication_slots;
>
> select * from pg_replication_slots;
>
>
>
> And better to check if the replica has error log on it.
>
>
>
> Sincerely,
>
>
> * Mendbayar A.*
>
>
>
> *From:* Erik Serrano <[email protected]>
> *Sent:* Tuesday, February 11, 2025 5:11 AM
> *To:* Pgsql-admin <[email protected]>;
> [email protected]
> *Subject:* Errors of a Postgresql replication with PowerBi
>
>
>
> You don't often get email from [email protected]. Learn why this is
> important <https://aka.ms/LearnAboutSenderIdentification;
>
> *ТУХАЙН ИЛГЭЭГЧ НЬ МАНАЙ ХАРИЛЦАГЧИЙН ИМЭЙЛ БИШ БАЙНА!!*
> *Сэжигтэй тохиолдолд "[email protected] <[email protected]>" рүү заавал
> мэдэгдэнэ үү.*
>
>
>
> 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
>
> Regards
>
>
>
>
>
> *Erik R. Serrano Saavedra*
>
> *      Data Base Administrator*
>
>
>


^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re: Errors of a Postgresql replication with PowerBi
  2025-02-10 21:10 Errors of a Postgresql replication with PowerBi Erik Serrano <[email protected]>
@ 2025-02-11 13:48 ` Ron Johnson <[email protected]>
  2025-02-11 14:02   ` Re: Errors of a Postgresql replication with PowerBi Erik Serrano <[email protected]>
  2025-02-11 14:08   ` Re: Errors of a Postgresql replication with PowerBi Laurenz Albe <[email protected]>
  1 sibling, 2 replies; 7+ messages in thread

From: Ron Johnson @ 2025-02-11 13:48 UTC (permalink / raw)
  To: ; +Cc: Pgsql-admin <[email protected]>

On Tue, Feb 11, 2025 at 2:17 AM Erik Serrano <[email protected]> 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!


^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re: Errors of a Postgresql replication with PowerBi
  2025-02-10 21:10 Errors of a Postgresql replication with PowerBi Erik Serrano <[email protected]>
  2025-02-11 13:48 ` Re: Errors of a Postgresql replication with PowerBi Ron Johnson <[email protected]>
@ 2025-02-11 14:02   ` Erik Serrano <[email protected]>
  1 sibling, 0 replies; 7+ messages in thread

From: Erik Serrano @ 2025-02-11 14:02 UTC (permalink / raw)
  To: Ron Johnson <[email protected]>; +Cc: Pgsql-admin <[email protected]>

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 (<[email protected]>)
escribió:

> On Tue, Feb 11, 2025 at 2:17 AM Erik Serrano <[email protected]> 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!
>


^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re: Errors of a Postgresql replication with PowerBi
  2025-02-10 21:10 Errors of a Postgresql replication with PowerBi Erik Serrano <[email protected]>
  2025-02-11 13:48 ` Re: Errors of a Postgresql replication with PowerBi Ron Johnson <[email protected]>
@ 2025-02-11 14:08   ` Laurenz Albe <[email protected]>
  2025-02-11 14:45     ` Re: Errors of a Postgresql replication with PowerBi Erik Serrano <[email protected]>
  1 sibling, 1 reply; 7+ messages in thread

From: Laurenz Albe @ 2025-02-11 14:08 UTC (permalink / raw)
  To: Ron Johnson <[email protected]>; +Cc: Pgsql-admin <[email protected]>

On Tue, 2025-02-11 at 08:48 -0500, Ron Johnson wrote:
> On Tue, Feb 11, 2025 at 2:17 AM Erik Serrano <[email protected]> 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.





^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re: Errors of a Postgresql replication with PowerBi
  2025-02-10 21:10 Errors of a Postgresql replication with PowerBi Erik Serrano <[email protected]>
  2025-02-11 13:48 ` Re: Errors of a Postgresql replication with PowerBi Ron Johnson <[email protected]>
  2025-02-11 14:08   ` Re: Errors of a Postgresql replication with PowerBi Laurenz Albe <[email protected]>
@ 2025-02-11 14:45     ` Erik Serrano <[email protected]>
  0 siblings, 0 replies; 7+ messages in thread

From: Erik Serrano @ 2025-02-11 14:45 UTC (permalink / raw)
  To: Laurenz Albe <[email protected]>; +Cc: Ron Johnson <[email protected]>; Pgsql-admin <[email protected]>

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 (<[email protected]>)
escribió:

> On Tue, 2025-02-11 at 08:48 -0500, Ron Johnson wrote:
> > On Tue, Feb 11, 2025 at 2:17 AM Erik Serrano <[email protected]>
> 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.
>
>
>


^ permalink  raw  reply  [nested|flat] 7+ messages in thread


end of thread, other threads:[~2025-02-11 14:45 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2025-02-10 21:10 Errors of a Postgresql replication with PowerBi Erik Serrano <[email protected]>
2025-02-11 07:41 ` Mendbayar Alzakhgui <[email protected]>
2025-02-11 12:45   ` Erik Serrano <[email protected]>
2025-02-11 13:48 ` Ron Johnson <[email protected]>
2025-02-11 14:02   ` Erik Serrano <[email protected]>
2025-02-11 14:08   ` Laurenz Albe <[email protected]>
2025-02-11 14:45     ` Erik Serrano <[email protected]>

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox