<?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>LINUX ADMINISTRATION NOTES &#38; CODE SNIPPETS &#187; Database</title>
	<atom:link href="http://linuxbloggers.org/category/database/feed/" rel="self" type="application/rss+xml" />
	<link>http://linuxbloggers.org</link>
	<description>pTCsxunH</description>
	<lastBuildDate>Sun, 28 Feb 2010 18:43:55 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Saving an output of PostgreSQL query to a text file</title>
		<link>http://linuxbloggers.org/saving-an-output-of-postgresql-query-to-a-text-file/</link>
		<comments>http://linuxbloggers.org/saving-an-output-of-postgresql-query-to-a-text-file/#comments</comments>
		<pubDate>Fri, 14 Aug 2009 23:53:09 +0000</pubDate>
		<dc:creator>linux</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://linuxbloggers.org/?p=177</guid>
		<description><![CDATA[In PostgreSQL database it is possible to save / export and results of a database query to a simple text file. By default  all query result are displayed on the screen. This default behavior can be overwritten by \o command:
postresql=> \o /path/to/your/text/file.txt
postresql=> postgresql query  ( here place your query )
postresql=> \o ( set [...]]]></description>
		<wfw:commentRss>http://linuxbloggers.org/saving-an-output-of-postgresql-query-to-a-text-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>invalid byte sequence for encoding &#8220;UTF8&#8243;: 0&#215;8b &#8211; storing binary data</title>
		<link>http://linuxbloggers.org/error-invalid-byte-sequence-encoding-utf8-0x8b-storing-binary-data/</link>
		<comments>http://linuxbloggers.org/error-invalid-byte-sequence-encoding-utf8-0x8b-storing-binary-data/#comments</comments>
		<pubDate>Thu, 24 Jul 2008 03:51:22 +0000</pubDate>
		<dc:creator>linux</dc:creator>
				<category><![CDATA[Administration]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[binary data]]></category>
		<category><![CDATA[encoding]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[how]]></category>
		<category><![CDATA[postgresql]]></category>
		<category><![CDATA[retrieve]]></category>
		<category><![CDATA[storeage]]></category>
		<category><![CDATA[unicode]]></category>
		<category><![CDATA[utf8]]></category>

		<guid isPermaLink="false">http://blog.linuxconfig.org/?p=97</guid>
		<description><![CDATA[This error message took me lots of effort and time to solve it. The problem is that before storing binary data strings in the postgresql database the binary strings need to be escaped before storing them. There is on the google available subroutine for per which is doing this job. It is called escape_bytea. Anyway [...]]]></description>
		<wfw:commentRss>http://linuxbloggers.org/error-invalid-byte-sequence-encoding-utf8-0x8b-storing-binary-data/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CREATE, INSERT, SELECT, UPDATE Perl script and PostgreSQL database examples</title>
		<link>http://linuxbloggers.org/create-insert-select-update-perl-script-and-postgresql-database-examples/</link>
		<comments>http://linuxbloggers.org/create-insert-select-update-perl-script-and-postgresql-database-examples/#comments</comments>
		<pubDate>Fri, 01 Feb 2008 11:27:31 +0000</pubDate>
		<dc:creator>linux</dc:creator>
				<category><![CDATA[Administration]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[CREATE]]></category>
		<category><![CDATA[INSERT]]></category>
		<category><![CDATA[SELECT]]></category>
		<category><![CDATA[UPDATE Perl and PostgreSQL database examples linux]]></category>

		<guid isPermaLink="false">http://blog.linuxconfig.org/create-insert-select-update-perl-script-and-postgresql-database-examples/</guid>
		<description><![CDATA[Simple perl to postgresql examples:
#!/usr/bin/perl
#load perl postgresql module
use DBI;
$postgresql_database=yourpostgresdatabase;
$postgresql_user=yourpostgresuser;
$postgresql_password=yourpostgrespass;
$postgresql_host=localhost;
# connect to perl to postgresql database
my $dbh = DBI-&#62;connect(&#8221;DBI:Pg:dbname=$postgresql_database;
host=$postgresql_host&#8221;, &#8220;$postgresql_user&#8221;, &#8220;$postgresql_password&#8221;);
# EXAMPLE PERL and POSTGRESQL
# CREATE TABLE EXAMPLE
$sth = $dbh-&#62;prepare(&#8221;CREATE TABLE perl_postgres
( language varchar(40), version integer);&#8221;);
$sth-&#62;execute();
# EXAMPLE PERL and POSTGRESQL
# INSERT DATA INTO TABLE
$dbh-&#62;do(&#8221;INSERT INTO perl_postgres(language, version)
VALUES (?, ?)&#8221;, undef, (&#8217;perl&#8217;, 5)) or die (&#8221;Cannot INSERT&#8221;);
# [...]]]></description>
		<wfw:commentRss>http://linuxbloggers.org/create-insert-select-update-perl-script-and-postgresql-database-examples/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
