On Sun, Mar 23, 2014 at 7:57 AM, Amit Kapila <amit.kapila16@gmail.com> wrote:
> Anyone has any objection for this behaviour difference between
> usage of ::regclass and to_regclass()?
No, I think that makes a lot of sense given the behavior -- if the
object is not there, to_regclass() just returns NULL. It doesn't
require the object to be present, it should not create a dependency.
This allows you to, for example, drop and recreate sequences while
tables are still using them.
Regards,
Marti