pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Łukasz Jarych <jaryszek@gmail.com>
To: guillaume@lelarge.info
Cc: pgsql-general@postgresql.org >> PG-General Mailing List <pgsql-general@postgresql.org>
Subject: Re: Create event triger
Date: Tue, 10 Jul 2018 06:56:20 -0700
Message-ID: <151c887a-d5b1-e8be-4ab6-0007f32895d4@aklaver.com> (raw)
In-Reply-To: <CAGv31of+BMyh0sr9PKOWrqFNRXd0hBpEDM+VCm=5mi8q8pe11g@mail.gmail.com>
References: <CAGv31od1ZSN9Zbu9Qu4F_51z96XETz1qVo7ehctsSrjD4uBhUA@mail.gmail.com>
	<CAGv31oeo6zZbqK4L+zJQWKgeBj3WWpY0X_fB-Q9RESsvWUVPiw@mail.gmail.com>
	<CAECtzeXPKPyznmATgv_vSKRrFPX2Bqa60kiAXf=EinrtJiYbaA@mail.gmail.com>
	<CAGv31odH7dh+rbAkQicgP5wAdJyNv6gLSoW=9veEMM-V41fZqg@mail.gmail.com>
	<CAECtzeWSZZxr1b6tRBh9Ltyt=VRmYJ4obWj5gKQ7W+1fahzseg@mail.gmail.com>
	<CAGv31of+BMyh0sr9PKOWrqFNRXd0hBpEDM+VCm=5mi8q8pe11g@mail.gmail.com>

On 07/10/2018 02:30 AM, Łukasz Jarych wrote:
> Maybe yes,
> 
> but for me when i am learning it is not...

How do you do CREATE TABLE now, ad hoc in the client or via scripts?

If via scripts you could create a template script for the trigger and 
then just fill in the table name as needed.

A function to add the trigger would be more involved and I do not have 
the time at the moment to create an example. Will see if I can come up 
with something later.

> 
> Best,
> Jacek
> 

-- 
Adrian Klaver
adrian.klaver@aklaver.com




view thread (11+ messages)  latest in thread

Message-ID: <151c887a-d5b1-e8be-4ab6-0007f32895d4@aklaver.com>
Permalink:  ../151c887a-d5b1-e8be-4ab6-0007f32895d4@aklaver.com/
Also on:    postgresql.org/message-id/151c887a-d5b1-e8be-4ab6-0007f32895d4@aklaver.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: adrian.klaver@aklaver.com, jaryszek@gmail.com, guillaume@lelarge.info
  Subject: Re: Create event triger
  In-Reply-To: <151c887a-d5b1-e8be-4ab6-0007f32895d4@aklaver.com>
  References: <CAGv31od1ZSN9Zbu9Qu4F_51z96XETz1qVo7ehctsSrjD4uBhUA@mail.gmail.com> <CAGv31oeo6zZbqK4L+zJQWKgeBj3WWpY0X_fB-Q9RESsvWUVPiw@mail.gmail.com> <CAECtzeXPKPyznmATgv_vSKRrFPX2Bqa60kiAXf=EinrtJiYbaA@mail.gmail.com> <CAGv31odH7dh+rbAkQicgP5wAdJyNv6gLSoW=9veEMM-V41fZqg@mail.gmail.com> <CAECtzeWSZZxr1b6tRBh9Ltyt=VRmYJ4obWj5gKQ7W+1fahzseg@mail.gmail.com> <CAGv31of+BMyh0sr9PKOWrqFNRXd0hBpEDM+VCm=5mi8q8pe11g@mail.gmail.com> <151c887a-d5b1-e8be-4ab6-0007f32895d4@aklaver.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