<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Functions on Postgres Scripts</title><link>https://www.postgresscripts.com/tags/functions/</link><description>Recent content in Functions on Postgres Scripts</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>PostgresScripts.com</copyright><lastBuildDate>Thu, 02 Jul 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://www.postgresscripts.com/tags/functions/index.xml" rel="self" type="application/rss+xml"/><item><title>List PostgreSQL Functions with pg_proc</title><link>https://www.postgresscripts.com/post/list-postgresql-functions-pg-proc/</link><pubDate>Thu, 02 Jul 2026 00:00:00 +0000</pubDate><guid>https://www.postgresscripts.com/post/list-postgresql-functions-pg-proc/</guid><description>
&lt;h2 id="list-postgresql-functions-with-pg_proc"&gt;List PostgreSQL Functions with pg_proc&lt;/h2&gt;
&lt;p&gt;Where &lt;code&gt;information_schema.routines&lt;/code&gt; delivers a SQL-standard view of functions and procedures — portable across databases but deliberately incomplete — &lt;code&gt;pg_proc&lt;/code&gt; gives the full PostgreSQL catalog row: language, source code, argument modes, cost estimates, and the &lt;code&gt;prokind&lt;/code&gt; flag that distinguishes regular functions from aggregates, window functions, and stored procedures in a single query.&lt;/p&gt;
&lt;script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-1012089347386563"
crossorigin="anonymous"&gt;&lt;/script&gt;
&lt;ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-1012089347386563"
data-ad-slot="7945792173"
data-ad-format="auto"
data-full-width-responsive="true"&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;h2 id="purpose-and-overview"&gt;Purpose and Overview&lt;/h2&gt;
&lt;p&gt;Every function, procedure, aggregate, and window function created in a PostgreSQL database has a row in &lt;code&gt;pg_proc&lt;/code&gt;. The catalog stores the complete definition: the function name, the schema it lives in, the language it was written in, the source text, the argument list with modes and default values, the return type, and planner hints such as estimated cost and expected row count. It is the authoritative source for everything a DBA or developer needs to audit the stored-code layer of a database.&lt;/p&gt;</description></item></channel></rss>