<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
	
	>
<channel>
	<title>
	Comments on: PostgreSQL: Script to create a copy of the Existing Database	</title>
	<atom:link href="https://www.dbrnd.com/2016/02/postgresql-script-to-create-a-copy-of-the-existing-database/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.dbrnd.com/2016/02/postgresql-script-to-create-a-copy-of-the-existing-database/</link>
	<description>BIGData &#124; NoSQL &#124; MSSQL &#124; MySQL &#124; PostgreSQL</description>
	<lastBuildDate>Wed, 04 Oct 2017 06:50:21 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.4</generator>
	<item>
		<title>
		By: belgie		</title>
		<link>https://www.dbrnd.com/2016/02/postgresql-script-to-create-a-copy-of-the-existing-database/#comment-3607</link>

		<dc:creator><![CDATA[belgie]]></dc:creator>
		<pubDate>Tue, 01 Mar 2016 11:38:05 +0000</pubDate>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=1804#comment-3607</guid>

					<description><![CDATA[We want to say thnx you for creating this website and keep up the great work!]]></description>
			<content:encoded><![CDATA[<p>We want to say thnx you for creating this website and keep up the great work!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: PISEY		</title>
		<link>https://www.dbrnd.com/2016/02/postgresql-script-to-create-a-copy-of-the-existing-database/#comment-3356</link>

		<dc:creator><![CDATA[PISEY]]></dc:creator>
		<pubDate>Fri, 26 Feb 2016 00:51:11 +0000</pubDate>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=1804#comment-3356</guid>

					<description><![CDATA[Hello Anvesh Patel. Thanks q so much for that sharing , but i have a question , after i follow you script i&#039;ve successfully copied new db by run the follow script:

 create database newdb with template chatdevdb owner chat_real;
But after I check the tablespace of both databases (chatdevdb(old),newdb(new)) they are stored in the same tablespace and the data size is different:

  List of databases
   Name    &#124;   Owner   &#124; Encoding &#124;  Collate   &#124;   Ctype    &#124; Access privileges &#124;  Size   &#124;  Tablespace  &#124;                Description                 
-----------+-----------+----------+------------+------------+-------------------+---------+--------------+--------------------------------------------
 a         &#124; pgdba     &#124; UTF8     &#124; ko_KR.utf8 &#124; ko_KR.utf8 &#124;                   &#124; 6803 kB &#124; pg_default   &#124; 
 chatdevdb &#124; chat_real &#124; UTF8     &#124; ko_KR.utf8 &#124; ko_KR.utf8 &#124;                   &#124; 50 MB   &#124; tbs_chat_dat &#124; 
 newdb     &#124; chat_real &#124; UTF8     &#124; ko_KR.utf8 &#124; ko_KR.utf8 &#124;                   &#124; 7731 kB &#124; tbs_chat_dat &#124; 



the chatdevdb(old) is 50M and newdb(new) is 7731kB, pls you explain me why? 

Thanks q in advance]]></description>
			<content:encoded><![CDATA[<p>Hello Anvesh Patel. Thanks q so much for that sharing , but i have a question , after i follow you script i&#8217;ve successfully copied new db by run the follow script:</p>
<p> create database newdb with template chatdevdb owner chat_real;<br />
But after I check the tablespace of both databases (chatdevdb(old),newdb(new)) they are stored in the same tablespace and the data size is different:</p>
<p>  List of databases<br />
   Name    |   Owner   | Encoding |  Collate   |   Ctype    | Access privileges |  Size   |  Tablespace  |                Description<br />
&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
 a         | pgdba     | UTF8     | ko_KR.utf8 | ko_KR.utf8 |                   | 6803 kB | pg_default   |<br />
 chatdevdb | chat_real | UTF8     | ko_KR.utf8 | ko_KR.utf8 |                   | 50 MB   | tbs_chat_dat |<br />
 newdb     | chat_real | UTF8     | ko_KR.utf8 | ko_KR.utf8 |                   | 7731 kB | tbs_chat_dat | </p>
<p>the chatdevdb(old) is 50M and newdb(new) is 7731kB, pls you explain me why? </p>
<p>Thanks q in advance</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
