<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>TABLE IF NOT EXISTS &#8211; Database Research &amp; Development</title>
	<atom:link href="https://www.dbrnd.com/tag/table-if-not-exists/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.dbrnd.com</link>
	<description>BIGData &#124; NoSQL &#124; MSSQL &#124; MySQL &#124; PostgreSQL</description>
	<lastBuildDate>Wed, 21 Mar 2018 20:25:14 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.6</generator>
	<item>
		<title>PostgreSQL: Create TABLE IF NOT EXISTS</title>
		<link>https://www.dbrnd.com/2018/03/postgresql-create-table-if-not-exists/</link>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Mon, 26 Mar 2018 16:16:36 +0000</pubDate>
				<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[dbrnd]]></category>
		<category><![CDATA[plpgsql]]></category>
		<category><![CDATA[Postgres Query]]></category>
		<category><![CDATA[postgresql]]></category>
		<category><![CDATA[PostgreSQL Administrator]]></category>
		<category><![CDATA[PostgreSQL Error]]></category>
		<category><![CDATA[PostgreSQL Monitoring]]></category>
		<category><![CDATA[PostgreSQL Performance Tuning]]></category>
		<category><![CDATA[PostgreSQL Programming]]></category>
		<category><![CDATA[PostgreSQL Tips and Tricks]]></category>
		<category><![CDATA[TABLE IF NOT EXISTS]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=6925</guid>

					<description><![CDATA[Table IF NOT EXISTS is available from PostgreSQL 9.1. I am sharing this primary because many people are still using PostgreSQL old version. Also, notice that People who are using PostgreSQL new version those are still not using TABLE IF NOT EXISTS. Because, before PostgreSQL 9.1 this was not there and still they perception is [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2018%2F03%2Fpostgresql-create-table-if-not-exists%2F&amp;linkname=PostgreSQL%3A%20Create%20TABLE%20IF%20NOT%20EXISTS" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2018%2F03%2Fpostgresql-create-table-if-not-exists%2F&amp;linkname=PostgreSQL%3A%20Create%20TABLE%20IF%20NOT%20EXISTS" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_linkedin" href="https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2018%2F03%2Fpostgresql-create-table-if-not-exists%2F&amp;linkname=PostgreSQL%3A%20Create%20TABLE%20IF%20NOT%20EXISTS" title="LinkedIn" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2018%2F03%2Fpostgresql-create-table-if-not-exists%2F&amp;linkname=PostgreSQL%3A%20Create%20TABLE%20IF%20NOT%20EXISTS" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_reddit" href="https://www.addtoany.com/add_to/reddit?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2018%2F03%2Fpostgresql-create-table-if-not-exists%2F&amp;linkname=PostgreSQL%3A%20Create%20TABLE%20IF%20NOT%20EXISTS" title="Reddit" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2018%2F03%2Fpostgresql-create-table-if-not-exists%2F&amp;linkname=PostgreSQL%3A%20Create%20TABLE%20IF%20NOT%20EXISTS" title="Pocket" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.dbrnd.com%2F2018%2F03%2Fpostgresql-create-table-if-not-exists%2F&#038;title=PostgreSQL%3A%20Create%20TABLE%20IF%20NOT%20EXISTS" data-a2a-url="https://www.dbrnd.com/2018/03/postgresql-create-table-if-not-exists/" data-a2a-title="PostgreSQL: Create TABLE IF NOT EXISTS"></a></p><p>Table IF NOT EXISTS is available from PostgreSQL 9.1. </p>
<p>I am sharing this primary because many people are still using PostgreSQL old version. </p>
<p>Also, notice that People who are using PostgreSQL new version those are still not using TABLE IF NOT EXISTS.</p>
<p>Because, before PostgreSQL 9.1 this was not there and still they perception is the same.<br />
And even not changing there old code or script. </p>
<blockquote><p>Now, TABLE IF NOT EXISTS is available so not require to scan any catalog table for checking the table existence. </p></blockquote>
<p><strong><br />
Check the sample:</strong><br />
If the table exists, you get a message like a table already exists.</p>
<pre class="crayon-plain-tag">CREATE TABLE IF NOT EXISTS tbl_Test (Rno INT);

NOTICE:  relation "tbl_test" already exists, skipping</pre> </p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
