From: | Ken Lacrosse <klacrosse(at)pkwillis(dot)com> |
---|---|
To: | "'pgsql-general(at)lists(dot)postgresql(dot)org'" <pgsql-general(at)lists(dot)postgresql(dot)org> |
Subject: | Snippets? |
Date: | 2019-05-24 18:15:09 |
Message-ID: | f0bac938148e4f4f8fa69d65de427258@pkwillis.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Is there any way in postgresql to have a "snippet" of SQL code which you could apply to all tables. Something you could add which would ensure that every table always has a Created, Changed and Deleted column for example. Sort of like a C include I suppose. Of course if I'm building a DB schema by hand I could just copy and paste those columns but it still seems a bit too, darn humans!, error prone.
Ken LaCrosse
Senior IT InfoSec and Infrastructure Monitoring Specialist
I.T. | American Recovery Service & Skipbusters
Phone: (800)398-6480 x3758
Email: KLacrosse(at)pkwillis(dot)com<mailto:KLacrosse(at)pkwillis(dot)com>
www.pkwillis.com<http://www.pkwillis.com/>
* Visibility is key. *
Without visibility you can't see.
What you can't see you can't measure.
What you can't measure you can't planfully change.
What you can't planfully change you can't manage.
And if we can't manage then why are we here?
NOTICE: The information contained in this transmission, including attachments, may contain confidential information that is privileged, confidential and/or exempt from disclosure by applicable law. It is intended only for the use of the person(s) or entity to which it is addressed. If the reader of this transmission is not the intended recipient, the reader is hereby notified that any review, use, dissemination, distribution or duplication of this communication (including any reliance thereon) is strictly prohibited. If you have received this transmission in error, please contact the sender by reply email, then delete and destroy the material in its entirety, whether in electronic or hard copy format. WE SPECIFICALLY DISCLAIM RESPONSIBILITY FOR ANY UNAUTHORIZED USE OF THIS COMMUNICATION OR ANY ATTACHMENTS TO IT. Thank you.
From | Date | Subject | |
---|---|---|---|
Next Message | Ron | 2019-05-24 18:20:37 | Re: Snippets? |
Previous Message | Adrian Klaver | 2019-05-24 17:22:04 | Re: POSTGRES_FSM_RELATIONS CRITICAL: DB control fsm relations used: 79569 of 80000 (99%) |