I have an rndb database and created a new table myname_record, which is created with the default owner "postgres". In my program, I had to change the owner to "rndb", but I missed it. Now I need to do this in the console, so I enter the command
psql=>psql -Urndb
and then change of ownership with the following query
rndb=>ALTER TABLE public.myname_record OWNER to rndb;
but he says that you must be the owner to make these changes. I can understand, because I login via rndb, it gives this error. But how to do it really.
source share