I have a schema with a table along with a procedure. I want to find the last run or the modifications done in that procedure from that schema.schema is abc, so for abc schema the procedure proc1 should show the last run or any modifications done on it. How to find that for Postgresql Database?
Last Run/Modified Procedure Timestamp/Date in Postgresql
2.6k Views Asked by user1538020 At
2
There are 2 best solutions below
0
Tom Warfield
On
For anyone who just couldn't believe that a modern DBMS would NOT keep track of the created/last_altered date of a stored procedure, here's the doc: PostgreSQL → 12.3 → Reference → Manual ... where it says, "... Applies to a feature not available in PostgreSQL"
Related Questions in POSTGRESQL
- Why does adding a JOIN completely modify the query planner behaviour?
- When dealing with databases, does adding a different table when we can use a simple hash a good thing?
- Aggregate and count in PostgreSQL
- Rails HABTM: Select everything a that a record 'has'
- Trigger using data from inserted row
- Select results where joined table contains records with an attribute, but without another
- DB candidate as CouchDB/Schema replacement
- How do I properly add data in SQLAlchemy?
- Postgres in Conda Environment (Ubuntu 14.04)
- How to customize the output of the Postgres Pseudo Encrypt function?
- Split a large query (2 days) into pieces to increase the speed in Postgres
- Why does pg_search prefix not work like I expect?
- extracting meta info from a table psql using information_schema
- How to query a table in the database and copy it's data into one one?
- Update a table using info from a second table and a condition from a third table in Postgresql
Related Questions in STORED-PROCEDURES
- Optimising a slow running SQL Server Stored procedure ordered by calculated fields to return a closest match
- Oracle stored procedure wrapping compile error with inline comments
- Insert Into SP in Oracle Sql Developer
- Abstracting out a query to a stored procedure makes it run very slowly
- why it doesnt accept a concated string as parameter in SP?
- SQL Server Index recreate Stored Procedure Slow
- How to access a Row Type within an Array Type in DB2 SQL PL
- Return all Ids generated by Insert statement
- Most effective way to bind data models in WebForms without stored procedures?
- How to get result set from Oracle Stored Procedure?
- SQL Stored Procedure How to Modify and Return the Result of an Executed Dynamic Query
- How LinqToSql Generates output result of stored procedures
- pass $_post array elements of form as a string to mysql stored routines
- passing parameter values to stored procedure when calling from another procedure
- Insert Stored Procedure for One to many relationship SQL
Related Questions in TIMESTAMP
- Accelerator data analysis once per second
- How to get the time stamp of each frame of a GoPro video in MATLAB?
- CURRENT_TIMESTAMP in milliseconds in h2
- keep timezone "CET" from convert into "CEST" in python
- PHP timestamp and dates issue
- how to write mysql error and out log with timestamp
- Youtube embed display at one time start at beginning
- Span SQL Rows over time
- Convert timestamp into time()
- List files and timestamp of creation on AIX system (Perl)
- MySQL time and attendance "parse filter" type and status
- How can I format my timestamp right?
- Adding timestamp and custom name to a File uploaded via PHP
- Break Javascript array of timestamps into smaller arrays by hour, day
- How do I find the time difference between two timestamps?
Related Questions in LAST-MODIFIED
- move all folders modified after <time> to new folder
- get the last updated time of variable - java
- Show last created audio file in Android
- How can I find last modified timestamp for a table in Hive?
- Find last modified file in all subfolders
- Delete all files not modified in last ten days
- How to preserve date modified when retrieving file using Apache FTPClient?
- Dynamically cache images in ASP .NET MVC
- Get Last Write Time is returning a strange value
- Finding modification date of a file recorded in a CD-R
- If Batch File Modified Date is older than 90 days, delete files
- Parsing HTTP 'Last-Modified' Date string in PHP
- HTTP - Should I use Last-Modified as an Etag?
- File.lastModified is not supported by best browsers ? Alternatives?
- Bash Scripting: getting the last modified file with find or ls is not always working good
Related Questions in UPDATEDATE
- How to update Android Datepicker maxdate
- PHP: Update MySQL entry based on certain date
- List tasks where User chanded status in period
- Django problem updating date field when updating a record
- Track the created on and updated on data of features in geoserver layers
- How can I find the latest date when I edited my code in Visual Studio?
- Updating Systemdate for Modified date field asp.net
- How do I optimize the search for changed object and its dependencies records
- how to update the date in android DatePicker widget
- NHibernate: Insert and update dates
- update data store as historical for every single day separately with postgresql python
- Rails: Showing the latest deploy date in web app
- create / update timestamps - when to add/use?
- How to update minDate and maxDate of Datepicker Android
- Last Run/Modified Procedure Timestamp/Date in Postgresql
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
There is no way to get this information retroactively, i.e. for past runs.
You can create a table like
proc_last_runand have each procedureinsertorupdatea row in it each time it's run, but this only works when you can modify each procedure, and only for runs after you modify it.For runs in the past you simply can't. PostgreSQL doesn't keep track of that information, so you can't get it. You might be able to extract it from the server logs if you run with
log_statement = 'all', but that's about it.