'CREATE OR REPLACE FUNCTION' behavior whenever a transaction is running - Mailing list pgsql-docs

From PG Doc comments form
Subject 'CREATE OR REPLACE FUNCTION' behavior whenever a transaction is running
Date
Msg-id 165047776965.683.11067605937815363802@wrigleys.postgresql.org
Whole thread Raw
Responses Re: 'CREATE OR REPLACE FUNCTION' behavior whenever a transaction is running  ("David G. Johnston" <david.g.johnston@gmail.com>)
List pgsql-docs
The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/14/sql-createfunction.html
Description:

The page does not mention what is the default behavior whenever a function
is replaced while the same function is being used in another
query/transaction.

Does the query fail? Does the 'CREATE OR REPLACE' operation fail? Does the
query finish before the function is replaced?

As a side note, my interest in this came from our need to use 'C-Language
Functions', aka binary functions, so it would be neat to also add what is
the behavior on those as well, if there's any difference.

pgsql-docs by date:

Previous
From: Erikjan Rijkers
Date:
Subject: Re: Add further details to ROW SHARE table level lock modes section
Next
From: PG Doc comments form
Date:
Subject: What is a "simple expression"?