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.7k views Asked by user1538020 At
2
There are 2 answers
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
- Only the first SQL script gets executed inside Docker Postgres container
- Compare fields in two tables
- Hibernate ClobJdbcType bindings: what are the diferences?
- Postgres && statement Error in Mybatis Mapper?
- Can this query be optimized? (Choosing a random row to insert, that excludes previously inserted Rows)
- Connection terminated unexpectedly while performing multi row insert using pg-promise
- Processing multiple forms in nodejs and postgresql
- How to copy data from SQLite to postgreSQL?
- PGAdmin4 configured behind a reverse proxy but unable to connect to Postgresql server
- Updates to pgsodium encrypted values don't use specified key_id
- Connecting to Postgres running in a Docker container using psql
- Can't connect to local postgresql server from my docker container
- Django Arrayfield migration to cloud sql (Postgresql) not creating the column
- Get list of matching keywords for each post
- docker-compose can't reset postgresql database
Related Questions in STORED-PROCEDURES
- Calling a REST API from SQL Server
- Updating Access Database using C# and stored procedure does not work
- How to load csv data to mysql table using mysql stored procedure
- Why are encrypted stored procedures taking a long time to execute in SQL Server 2022?
- switch from current encoding to specified encoding is not supported
- Get merge WHEN NOT MATCHED output into another table
- Parmeter values not resolving in ADF
- Creating a stored function on SQL of average scores, error code 1064
- value for insert on a procedure call is taken as column name generating an error that reports such column doesn't exist
- Stored Procedure to Update Column in TableA to TableB Value +1 For Each Change In The Column
- CallableStatement for DB2 StoredProcedure throws BadSqlGrammarException - Descriptor index not valid (10>9)
- How to call a stored procedure from Spring Data JPA and map the result to a custom object without having a corresponding entity?
- ORACLE: Build 'INSERT INTO' statements from 'SELECT *' results
- SQL Tranformations in view or stored procedure?
- How to add conditions to WHERE clause with if...else in SQL?
Related Questions in TIMESTAMP
- Laravel's whereBetween method not working with two timestamps
- TimeStamp on ICMP on Scapy (Python)
- How to properly set timestamp field seeder for a postgreSql database in Laravel 10.47?
- Hive query on HUE shows different timestamp than programatically/on data
- Invalid argument with SendMsg() cmsg in golang
- C# DateTime.Parse method losses nanosecond precision of the timestamp string
- How can I keep randomized UNIX timestamp in specific hour range in SQL?
- How to edit the Samsung Trailer Tag "Timestamp"
- How can I find the elapsed time from a specific date to now when using Pandas Timestamp in Python?
- How to customize tick mark for 2D surface plotply in both x axis (time of day) & y axis (dates in a year)
- How to set the display format of timestamp in Apache IoTDB to yyyy-MM-dd HH:mm:ss.SSSZZ?
- How to print out a datetime stamp info in a plpgSQL using "raise info" function for debugging purpose in Redshift environment
- string to timestamp with sql
- How can I 'tell' PostgreSQL what the timestamp format is when I INSERT a text string that represents a timestamp into a table?
- Unable to write the file while using windowing for streaming data use to ":" in Windows
Related Questions in LAST-MODIFIED
- rsync omit times for symlinks
- Folder Last Modified Date Discrepancy in Windows Explorer due to Subfolder Changes
- Peform tasks based upon matching files last modified stamp being greater than x minutes
- Last-Modified header always shows 1 jan 1970
- Get last modified of nested file
- How to reduce the time taken by an ADF pipeline to read all the files in a FileShare and pick only the latest file
- Why Last-Modified can be strong validator
- How can I get FileDateTime in VBA to paste UK instead of US date string into a cell in Excel
- File path versioning cache bursting not working and modified date response header is coming as very old date as 1985 for my react bundle
- how to get modified date of the file in python
- Get last modified folder using Azure Data Factory
- Auto Date created and Last Modifier Google Sheet App scripts
- Batch File Get Last Modified Date whille looping thru subdirectories
- file list in google drive incomplete
- Is there any possibility to get the last modified user details of file in C# without using Auditing or event logs
Related Questions in UPDATEDATE
- List tasks where User chanded status in period
- Django problem updating date field when updating a record
- How can I find the latest date when I edited my code in Visual Studio?
- How do I optimize the search for changed object and its dependencies records
- PHP filemtime vs MySQL last updated timestamp for image caching in CMS
- update data store as historical for every single day separately with postgresql python
- Track the created on and updated on data of features in geoserver layers
- How to update Android Datepicker maxdate
- Last Run/Modified Procedure Timestamp/Date in Postgresql
- How to update minDate and maxDate of Datepicker Android
- create / update timestamps - when to add/use?
- Updating Systemdate for Modified date field asp.net
- PHP: Update MySQL entry based on certain date
- how to update the date in android DatePicker widget
- Rails: Showing the latest deploy date in web app
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?
Popular Tags
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)
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.