17.2. Renaming a Column #

Execute the following query:

  SELECT metastore.rename_column('schema_name.table_name' or 'table_name', 'current_column_name', 'new_column_name');

Where:

Example 17.2. 

  SELECT metastore.rename_column('testtable', 'first_col', 'eleventh_col');

Once the query is executed, pgpro_metastore performs the following actions: