Anders Steinlein <anders@xxxxxx> writes: > Am I right in thinking that we should actually go over (i.e. re-create) all > functions and views defined before this dump/restore where we're using JOIN > ... USING (citext_column)? We most definitely have many more such cases, > since this is the common (perhaps naive) way we've written joins (unless > there are obvious reasons to be explicit). :-/ If it's not clear to you how this matview came to be different from the rest, then it certainly seems likely that other ones might have the same disease. Note that functions don't really have this sort of issue, since they're just stored as text. Only a view or matview would preserve creation-time decisions about interpretation. regards, tom lane