pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andreas Kretschmer <akretschmer@spamfence.net>
To: pgsql-general@postgresql.org
Subject: Re: How could I find the last modified procedure in the database?
Date: Wed, 16 Nov 2011 17:30:55 +0100
Message-ID: <20111116163055.GA13297@tux> (raw)
In-Reply-To: <CAJfXtLcpC89EY-wMecQs_uMprtgUxyh7VomJgGNXQQQgW4N1cw@mail.gmail.com>
References: <CAJfXtLcpC89EY-wMecQs_uMprtgUxyh7VomJgGNXQQQgW4N1cw@mail.gmail.com>

Dhimant Patel <drp4kri@gmail.com> wrote:

> I have postgres (PostgreSQL) 9.0.3 running.
> I also created several procedures/functions and now I don't remember the last
> procedure I worked on! - I thought I could always get this from metadata.
> 
> Now I'm stuck - couldn't find this details anywhere in catalog tables!
> 
> Is there anyway I can get this information?

Maybe with this query:

select proname from pg_proc order by oid desc limit 1;

but i'm not really sure ... tias (try it and see)


Andreas
-- 
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect.                              (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly."   (unknown)
Kaufbach, Saxony, Germany, Europe.              N 51.05082°, E 13.56889°



view thread (6+ messages)  latest in thread

Message-ID: <20111116163055.GA13297@tux>
Permalink:  ../20111116163055.GA13297@tux/
Also on:    postgresql.org/message-id/20111116163055.GA13297@tux

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: akretschmer@spamfence.net, pgsql-general@postgresql.org
  Subject: Re: How could I find the last modified procedure in the database?
  In-Reply-To: <20111116163055.GA13297@tux>

* 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