pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
postgresql api
4+ messages / 3 participants
[nested] [flat]

* postgresql api
@ 2018-09-17 09:19  vyshu Ysh <sudha.2114@gmail.com>
  0 siblings, 1 reply; 4+ messages in thread

From: vyshu Ysh @ 2018-09-17 09:19 UTC (permalink / raw)
  To: pgsql-general

Hi Team,

Is there any postgresql API which tells when the master/standby server is
down ?

Thanks,
Sudha

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

* Re: postgresql api
@ 2018-09-17 11:51  Enrico Pirozzi <sscotty71@gmail.com>
  parent: vyshu Ysh <sudha.2114@gmail.com>
  0 siblings, 1 reply; 4+ messages in thread

From: Enrico Pirozzi @ 2018-09-17 11:51 UTC (permalink / raw)
  To: vyshu Ysh <sudha.2114@gmail.com>; +Cc: pgsql-general

Hi,

Have you tried to query the pg_stat_replication?


Enrico


Il lun 17 set 2018, 11:52 vyshu Ysh <sudha.2114@gmail.com> ha scritto:

> Hi Team,
>
> Is there any postgresql API which tells when the master/standby server is
> down ?
>
> Thanks,
> Sudha
>

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

* Re: postgresql api
@ 2018-09-17 12:31  vyshu Ysh <sudha.2114@gmail.com>
  parent: Enrico Pirozzi <sscotty71@gmail.com>
  0 siblings, 1 reply; 4+ messages in thread

From: vyshu Ysh @ 2018-09-17 12:31 UTC (permalink / raw)
  To: info@enricopirozzi.info; +Cc: pgsql-general

Hi,

I wanted to query from my c# application. Am using npgsql, is there any
parameter or api ?

On Mon, 17 Sep 2018, 5:22 pm Enrico Pirozzi, <sscotty71@gmail.com> wrote:

> Hi,
>
> Have you tried to query the pg_stat_replication?
>
>
> Enrico
>
>
> Il lun 17 set 2018, 11:52 vyshu Ysh <sudha.2114@gmail.com> ha scritto:
>
>> Hi Team,
>>
>> Is there any postgresql API which tells when the master/standby server is
>> down ?
>>
>> Thanks,
>> Sudha
>>
>

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

* Re: postgresql api
@ 2018-09-17 16:10  Raymond O'Donnell <rod@iol.ie>
  parent: vyshu Ysh <sudha.2114@gmail.com>
  0 siblings, 0 replies; 4+ messages in thread

From: Raymond O'Donnell @ 2018-09-17 16:10 UTC (permalink / raw)
  To: vyshu Ysh <sudha.2114@gmail.com>; info@enricopirozzi.info; +Cc: pgsql-general

On 17/09/18 13:31, vyshu Ysh wrote:
> Hi,
> 
> I wanted to query from my c# application. Am using npgsql, is there any 
> parameter or api ?

select * from pg_stat_replication;

Ray.

-- 
Raymond O'Donnell :: Galway :: Ireland
rod@iol.ie




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


end of thread, other threads:[~2018-09-17 16:10 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-09-17 09:19 postgresql api vyshu Ysh <sudha.2114@gmail.com>
2018-09-17 11:51 ` Enrico Pirozzi <sscotty71@gmail.com>
2018-09-17 12:31   ` vyshu Ysh <sudha.2114@gmail.com>
2018-09-17 16:10     ` Raymond O'Donnell <rod@iol.ie>

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