Dependency Tracking

Started by PG Bug reporting formabout 1 year ago2 messagesdocs
Jump to latest
#1PG Bug reporting form
noreply@postgresql.org

The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/17/ddl-depend.html
Description:

(ddl-depend.html)

PostgreSQL will be aware that the get_color_note function depends on the

rainbow type: dropping the type would force dropping the function, because
its argument type would no longer be defined.

Maybe you should add that not only the function will be deleted, but also
the 'color' column of the 'my_colors' table?

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: PG Bug reporting form (#1)
Re: Dependency Tracking

PG Doc comments form <noreply@postgresql.org> writes:

Page: https://www.postgresql.org/docs/17/ddl-depend.html

PostgreSQL will be aware that the get_color_note function depends on the
rainbow type: dropping the type would force dropping the function, because
its argument type would no longer be defined.

Maybe you should add that not only the function will be deleted, but also
the 'color' column of the 'my_colors' table?

This paragraph is concerned with the dependency behavior of functions,
so I think adding that comment would just be off-topic complexity.

regards, tom lane