pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rob Sargent <robjsargent@gmail.com>
To: github kran <githubkran@gmail.com>
To: ronljohnsonjr@gmail.com
Cc: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: Re: Pulling data from Postgres DB table for every 5 seconds.
Date: Wed, 9 Jan 2019 11:01:23 -0700
Message-ID: <4616238f-75f9-fe48-0b5f-7b7978bd7daf@gmail.com> (raw)
In-Reply-To: <CACaZr5RUNBZQCsBnp+2dtqb8NFFOtETbnN9-6aJ6b_O9D3CPzw@mail.gmail.com>
References: <CACaZr5TQ6CuFe8tPSwNLA68ujTjT_=cCHhA0Nx0+9=BsNV4PYA@mail.gmail.com>
	<CACaZr5Ta1S_wXm-ZaA=2pQU+rsR_tzN5d4NWdju8JYxX-qNnEQ@mail.gmail.com>
	<46A9AD83-297C-4F4A-B198-10EBDE75D6D1@gmail.com>
	<CACaZr5RUNBZQCsBnp+2dtqb8NFFOtETbnN9-6aJ6b_O9D3CPzw@mail.gmail.com>


On 1/9/19 10:21 AM, github kran wrote:
> Thanks for your reply Rob. Reading the below documentation link says 
> the EVENT trigger is only supported for DDL commands. Is it not correct ?.
>
> _1) https://www.postgresql.org/docs/9.6/event-trigger-definition.html _
> (An event trigger fires whenever the event with which it is associated 
> occurs in the database in which it is defined. Currently, the only 
> supported events are ddl_command_start, ddl_command_end, 
> table_rewrite and sql_drop. Support for additional events may be added 
> in future releases.).
> 2) Doesnt the trigger slow down inserts/update we are doing to the 
> table ?. Does it slow down if we are reading the data using the API 
> when we have a trigger in place ?.
>
>
Ah, right you are.  Are triggers off the table?  You would want to write 
the trigger function in some (trusted?) language with access to the outside

view thread (15+ messages)  latest in thread

Message-ID: <4616238f-75f9-fe48-0b5f-7b7978bd7daf@gmail.com>
Permalink:  ../4616238f-75f9-fe48-0b5f-7b7978bd7daf@gmail.com/
Also on:    postgresql.org/message-id/4616238f-75f9-fe48-0b5f-7b7978bd7daf@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: robjsargent@gmail.com, githubkran@gmail.com, ronljohnsonjr@gmail.com
  Subject: Re: Pulling data from Postgres DB table for every 5 seconds.
  In-Reply-To: <4616238f-75f9-fe48-0b5f-7b7978bd7daf@gmail.com>
  References: <CACaZr5TQ6CuFe8tPSwNLA68ujTjT_=cCHhA0Nx0+9=BsNV4PYA@mail.gmail.com> <CACaZr5Ta1S_wXm-ZaA=2pQU+rsR_tzN5d4NWdju8JYxX-qNnEQ@mail.gmail.com> <46A9AD83-297C-4F4A-B198-10EBDE75D6D1@gmail.com> <CACaZr5RUNBZQCsBnp+2dtqb8NFFOtETbnN9-6aJ6b_O9D3CPzw@mail.gmail.com> <4616238f-75f9-fe48-0b5f-7b7978bd7daf@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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