<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>guide on IT Quicktasks</title><link>https://quicktasks.ismael.casimpan.com/tags/guide/</link><description>Recent content in guide on IT Quicktasks</description><generator>Hugo -- gohugo.io</generator><copyright>Copyright © 2018–2022, Ismael Casimpan Jr.; All Rights Reserved</copyright><lastBuildDate>Mon, 06 Sep 2021 09:28:45 +0800</lastBuildDate><atom:link href="https://quicktasks.ismael.casimpan.com/tags/guide/index.xml" rel="self" type="application/rss+xml"/><item><title>Copy Tables to Backup Tables in Postgresql</title><link>https://quicktasks.ismael.casimpan.com/post/copy-tables-to-backup-table-in-postgresql/</link><pubDate>Mon, 06 Sep 2021 09:28:45 +0800</pubDate><guid>https://quicktasks.ismael.casimpan.com/post/copy-tables-to-backup-table-in-postgresql/</guid><description>
Copy tables to an _old as backup 1CREATE TABLE new_table AS 2TABLE existing_table; See details in https://www.postgresqltutorial.com/postgresql-copy-table/</description></item><item><title>Verify Table Descriptions in Postgresql Via Psql</title><link>https://quicktasks.ismael.casimpan.com/post/verify-table-descriptions-in-postgresql-via-psql/</link><pubDate>Mon, 06 Sep 2021 09:28:45 +0800</pubDate><guid>https://quicktasks.ismael.casimpan.com/post/verify-table-descriptions-in-postgresql-via-psql/</guid><description>
1\d+ &amp;lt;table_name&amp;gt; Without the &amp;quot;+&amp;quot;, only normal table descriptions will be shown.</description></item><item><title>Rename An Index in Postgresql</title><link>https://quicktasks.ismael.casimpan.com/post/rename-index-in-postgresql/</link><pubDate>Mon, 06 Sep 2021 09:27:45 +0800</pubDate><guid>https://quicktasks.ismael.casimpan.com/post/rename-index-in-postgresql/</guid><description>
Rename an Index 1ALTER INDEX the_oldtablename_idx01 RENAME TO thenewtablename_idx01 NOTE: This has similar syntax for renaming primary key. The only difference noted is that for primary key, the suffix is always _pkey. In index, it's either idxNN or idexNN (where NN is a nunber, e.g. '01')</description></item><item><title>Update Table Column Comments in Postgresql</title><link>https://quicktasks.ismael.casimpan.com/post/update-table-column-comments-in-postgresql/</link><pubDate>Mon, 06 Sep 2021 09:27:45 +0800</pubDate><guid>https://quicktasks.ismael.casimpan.com/post/update-table-column-comments-in-postgresql/</guid><description>
Update comments on table columns 1COMMENT ON COLUMN &amp;lt;table_name&amp;gt;.&amp;lt;column_name&amp;gt; IS &amp;#39;&amp;lt;new_comment_here&amp;gt;&amp;#39;; See Stackoverflow reference and Postgres.org reference
NOTE: Comment cannot be altered or dropped.
To remove comment, set it to NULL as follows:
1COMMENT ON COLUMN &amp;lt;table_name&amp;gt;.&amp;lt;column_name&amp;gt; IS NULL;</description></item><item><title>Rename Primary Key in Postgresql</title><link>https://quicktasks.ismael.casimpan.com/post/rename-primary-key-in-postgresql/</link><pubDate>Mon, 06 Sep 2021 09:26:45 +0800</pubDate><guid>https://quicktasks.ismael.casimpan.com/post/rename-primary-key-in-postgresql/</guid><description>
Rename a Primary Key 1ALTER INDEX the_oldtablename_pkey RENAME TO thenewtablename_pkey</description></item></channel></rss>