<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
    <title>2ndQuadrant, Professional PostgreSQL - Gabriele's PlanetPostgreSQL</title>
    <link rel="alternate" type="text/html" href="http://blog.2ndquadrant.com/en/" />
    <link rel="self" type="application/atom+xml" href="http://blog.2ndquadrant.com/en/atom-gabriele-planetpostgresql.xml" />
    <id>tag:blog.2ndquadrant.com,2010-01-19:/en//3</id>
    <updated>2012-04-13T09:05:25Z</updated>
    <subtitle>2ndQuadrant Ltd official blog</subtitle>
    <generator uri="http://www.sixapart.com/movabletype/">Movable Type Open Source 4.12</generator>

<entry>
    <title>PGDay.IT 2011 was &quot;bellissimo&quot;!</title>
    <link rel="alternate" type="text/html" href="http://blog.2ndquadrant.com/en/2011/11/pgdayit-2011-was-bellissimo.html" />
    <id>tag:blog.2ndquadrant.com,2011:/en//3.186</id>

    <published>2011-11-28T12:26:39Z</published>
    <updated>2011-11-28T12:51:07Z</updated>

    <summary>The fifth edition of the Italian PGDay went well beyond our initial expectations. We had about 75 participants, a total of 95 people including staff and speakers.As I said during the event, rather than PGDay Italy, this should be named...</summary>
    <author>
        <name>Gabriele Bartolini</name>
        <uri>http://www.2ndquadrant.it/chi-siamo/#bartolini</uri>
    </author>
    
        <category term="Gabriele&apos;s PlanetPostgreSQL" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="pgdayit2011" label="PGDay.IT 2011" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://blog.2ndquadrant.com/en/">
        <![CDATA[The fifth edition of the Italian PGDay went well beyond our initial expectations. We had about 75 participants, a total of 95 people including staff and speakers.<br />As I said during the event, rather than PGDay Italy, this should be named PGDay for Italian speakers given the presence of staff from Switzerland (Canton Ticino). Participants came from 12 regions: all regions but Val d'Aosta in the north/centre area, but also from Southern Italy (Naples and Calabria).<br />]]>
        <![CDATA[In any case, it was fantastic to get back to Prato after 3 years, in the
 Monash&nbsp; University Prato Centre. The atmosphere was very similar to the
 first editions and we are really happy to see the community grow (last 
year we had 60 participants in total, which means an increment of 60%).<br />
Even the quality of the talks was in my humble opinion very high.<br />
The audience paid a tribute to Magnus Hagander for his nomination in the
 core team, then Magnus wonderfully covered the new features of 
PostgreSQL 9.1.<br /><span class="mt-enclosure mt-enclosure-image" style="display: inline;"><a href="http://blog.2ndquadrant.com/en/2011/11/28/pgday-it.html" onclick="window.open('http://blog.2ndquadrant.com/en/2011/11/28/pgday-it.html','popup','width=2592,height=1936,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"><img src="http://blog.2ndquadrant.com/en/2011/11/28/pgday-it-thumb-500x373.jpg" alt="Magnus Hagander's keyone at PGDay.IT 2011" class="mt-image-right" style="float: right; margin: 0 0 20px 20px;" height="373" width="500" /></a></span><br />
Simon Riggs talks were on the future of PostgreSQL and on NoSQL 
databases. Very interesting. Andreas Scherbaum covered data warehouse 
topics.<br />
Other interesting talks were:<br />
<ul><li>&nbsp;the experience on open source and Postgres for CSI Piemonte, one of the main organisations working for local governments</li><li>ORM and Perl by Ferruccio Zamuner</li><li>Node.js and Postgres by Lucio Granzi<br />
  </li><li>Serialisable snapshot isolation, covered by Marco Nenciarini</li><li>repmgr by Carlo Ascani</li><li>foreign tables and data wrappers by Giulio Calacoci</li></ul>
<p><br /></p><p>Unfortunately I missed Gianni's talk on debugging with CTEs as I was 
giving my speech on the project we (as 2ndQuadrant Italia) have been 
working in the last months: <a href="http://www.pgbarman.org/">BaRMan, backup and recovery manager for PostgreSQL</a>.
 The feedback I received was excellent (especially by certified Oracle 
engineers). We hope we can release it by the end of 2011 (depending on 
sponsorships) or, at the latest, early 2012.</p>
<p>In any case, even though organising this kind of events as community 
is not an easy task, the success of this edition is a source of 
motivation for all of us. We hope we can start much earlier with the 
organisation and we hope we can find more sponsors/partners for next 
year.</p>
<p>I take the opportunity to thank all the speakers that took part to 
PGDay and all the staff members: Diego, Luca, Gianluca, Cosimo, 
Maurizio, Marco (Tofanari), Emanuele and the team from 2ndQuadrant 
Italia (Carlo, Giulio, Marco, Gianni and Simone).<br />
</p>
<div><br /></div>]]>
    </content>
</entry>

<entry>
    <title>Call for papers for PGDay.IT 2011 has been extended</title>
    <link rel="alternate" type="text/html" href="http://blog.2ndquadrant.com/en/2011/10/call-for-papers-extended-pgday-italy-2011.html" />
    <id>tag:blog.2ndquadrant.com,2011:/en//3.171</id>

    <published>2011-10-15T14:08:03Z</published>
    <updated>2011-10-15T14:13:45Z</updated>

    <summary>The Call for Papers for the Italian PGDay has been extended of a week. The new deadline for submitting a paper is October 23....</summary>
    <author>
        <name>Gabriele Bartolini</name>
        <uri>http://www.2ndquadrant.it/chi-siamo/#bartolini</uri>
    </author>
    
        <category term="Gabriele&apos;s PlanetPostgreSQL" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="PostgreSQL" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="pgdayit2011" label="PGDay.IT 2011" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://blog.2ndquadrant.com/en/">
        The Call for Papers for the Italian PGDay has been extended of a week. The new deadline for submitting a paper is October 23.
        <![CDATA[English speakers can send their proposals to pgday2011@itpug.org (more information is available here: <a href="http://2011.pgday.it/sites/default/files/PGDay2011-CFP-EN_0.pdf">http://2011.pgday.it/sites/default/files/PGDay2011-CFP-EN_0.pdf</a> ).<br />
Rooms for developers and training are available as well.<br /><br />The Italian PGDay 2011 will take place in Prato, on Friday November 
25th, at the Monash University Prato Centre. Exactly, where it all 
started.<br />

<br />
Ci vediamo a Prato! (See you in Prato!)<br />]]>
    </content>
</entry>

<entry>
    <title>Early bird registrations open for PGDay.IT 2011</title>
    <link rel="alternate" type="text/html" href="http://blog.2ndquadrant.com/en/2011/09/pgday-it-2011-early-bird-registrations-open.html" />
    <id>tag:blog.2ndquadrant.com,2011:/en//3.168</id>

    <published>2011-09-19T14:41:24Z</published>
    <updated>2011-09-19T14:53:33Z</updated>

    <summary>The Italian PGDay 2011 will take place in Prato, on Friday November 25th, at the Monash University Prato Centre. Exactly, where it all started.The event, organised by the Italian PostgreSQL Users Group, will be a great chance for both Italian...</summary>
    <author>
        <name>Gabriele Bartolini</name>
        <uri>http://www.2ndquadrant.it/chi-siamo/#bartolini</uri>
    </author>
    
        <category term="Gabriele&apos;s PlanetPostgreSQL" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="PostgreSQL" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="pgdayit2011" label="PGDay.IT 2011" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://blog.2ndquadrant.com/en/">
        <![CDATA[<p>The Italian PGDay 2011 will take place in Prato, on Friday November 25th, at the Monash University Prato Centre. Exactly, where it all started.<br />The event, organised by the Italian PostgreSQL Users Group, will be a great chance for both Italian and European members of the PostgreSQL community to gather together and to promote PostgreSQL.<br /></p>
]]>
        <![CDATA[<p><br />Even though the schedule is not out, early bird registrations are now open. With less than 50 euro you can buy an early bird ticket to the event, which will grant you access to the conference and - as usual - a lot of food and drinks throughout the day. If you intend to participate, please contact the organisers at pgday2011@itpug.org or <a href="http://2011.pgday.it/registrazione">fill out the registration form (in Italian)</a><br /><br />I remind you that the Call for Papers is still open and that you can submit a paper in English here: <a href="http://2011.pgday.it/sites/default/files/PGDay2011-CFP-EN_0.pdf">http://2011.pgday.it/sites/default/files/PGDay2011-CFP-EN_0.pdf</a><br /><br />Ci vediamo a Prato! (See you in Prato!)<br /><br /></p>
]]>
    </content>
</entry>

<entry>
    <title>Australia: Last seats for our PostgreSQL courses in Melbourne</title>
    <link rel="alternate" type="text/html" href="http://blog.2ndquadrant.com/en/2010/11/postgresql-courses-australia-2ndquadrant-2010.html" />
    <id>tag:blog.2ndquadrant.com,2010:/en//3.112</id>

    <published>2010-11-19T06:17:43Z</published>
    <updated>2010-11-20T01:18:27Z</updated>

    <summary>2ndQuadrant will be delivering two courses on PostgreSQL in Australia. The location will be the prestigious Rialto Towers, one of the greatest attractions in Melbourne, right in the heart of the Central Business District, and one of the tallest office...</summary>
    <author>
        <name>Gabriele Bartolini</name>
        <uri>http://www.2ndquadrant.it/chi-siamo/#bartolini</uri>
    </author>
    
        <category term="Gabriele&apos;s PlanetPostgreSQL" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="International News" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="australia2010" label="Australia 2010" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://blog.2ndquadrant.com/en/">
        <![CDATA[<p>2ndQuadrant will be delivering two courses on PostgreSQL in Australia. The location will be the prestigious Rialto Towers, one of the greatest attractions in Melbourne, right in the heart of the Central Business District, and one of the tallest office buildings in the world.
</p>
]]>
        <![CDATA[<p><span class="mt-enclosure mt-enclosure-image" style="display: inline;"><img alt="rialto-tower.jpg" src="http://blog.2ndquadrant.com/en/2010/11/19/rialto-tower.jpg" width="180" height="240" class="mt-image-left" style="float: left; margin: 0 20px 20px 0;" /></span></p>

<p>Gabriele Bartolini will be teaching the most requested <a href="http://www.2ndquadrant.com/postgresql-training/courses/83">&#8220;PostgreSQL Database Administration&#8221;</a> course on November 29 and 30, as a two-day workshop with practical exercises.</p>

<p>On December 1 and 2, Gabriele will be teaching <a href="http://www.2ndquadrant.com/postgresql-training/courses/84">&#8220;PostgreSQL Datawarehousing and partitioning&#8221;</a> course. During the two-day workshop, students will learn the main concepts behind the data warehousing discipline as well as the main techniques and features that can turn PostgreSQL into a very efficient and cost-effective solution for data warehouse.</p>

<p><strong>A few seats are still available for both courses</strong> and registration is available online.</p>

<p>During this year&#8217;s &#8220;tour&#8221; in Australia, 2ndQuadrant will be sponsoring the <a href="http://2010.osdc.com.au/"><strong>2010 edition of the Open Source Developers&#8217; Conference</strong></a> (OSDC, the main conference for open-source developers in Australia) which will be held in Melbourne from November 23 to November 25. On this occasion, copies of <a href="http://www.2ndquadrant.com/books/">our recently released books from Simon Riggs, Hannu Krosing and Greg Smith</a> will be given to some lucky participants of the conference.</p>
]]>
    </content>
</entry>

<entry>
    <title>How to install multiple PostgreSQL servers on RedHat Linux</title>
    <link rel="alternate" type="text/html" href="http://blog.2ndquadrant.com/en/2010/05/install-multiple-postgresql-servers-redhat-linux.html" />
    <id>tag:blog.2ndquadrant.com,2010:/en//3.88</id>

    <published>2010-05-10T13:00:05Z</published>
    <updated>2010-05-10T14:47:04Z</updated>

    <summary>If you have a Linux server of the RedHat family (inclusing CentOS and Fedora), you might envy the way Debian/Ubuntu distributions handle PostgreSQL clusters management. Although it is not easy to install different PostgreSQL versions on the same RedHat Linux...</summary>
    <author>
        <name>Gabriele Bartolini</name>
        <uri>http://www.2ndquadrant.it/chi-siamo/#bartolini</uri>
    </author>
    
        <category term="Gabriele&apos;s PlanetPostgreSQL" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="PostgreSQL" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="multiplepostgresqlserversonredhatlinux" label="Multiple PostgreSQL servers on RedHat Linux" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://blog.2ndquadrant.com/en/">
        <![CDATA[<p>If you have a Linux server of the RedHat family (inclusing CentOS and Fedora), you might envy the way Debian/Ubuntu distributions handle PostgreSQL clusters management.</p>

<p>Although it is not easy to install different PostgreSQL versions on the same RedHat Linux server using RPMs, it is much simpler to install several instances of PostgreSQL (servers) and, at the same time, take advantage of the services infrastructure.</p>
]]>
        <![CDATA[<p>Once you have setup the RPM installation, by following the instructions that you find at the <a href="http://yum.pgsqlrpms.org/">PostgreSQL YUM Repository</a>, you will notice that the process will create two files among the others:</p>

<ul>
<li><code>/etc/init.d/postgresql</code>: init script for the PostgreSQL server</li>
<li><code>/etc/sysconfig/pgsql/postgresql</code>: system configuration for the postgresql service</li>
</ul>

<p>By default, PostgreSQL data directory (<code>PGDATA</code>) points to the <code>/var/lib/pgsql/data</code> directory. It is possible to change it by modifying the <code>/etc/sysconfig/pgsql/postgresql</code> file.</p>

<p>Let's suppose we want to install two PostgreSQL servers on the same RedHat Linux, by adding a second server to the default one which will be used for development purposes. We will call this <code>postgresql-devel</code>. It will be installed in the <code>/var/lib/pgsql/data-devel</code> directory and will run on the 5433 port.</p>

<p>We create a symbolic link to the main <code>postgresql</code> init script, and call it <code>postgresql-devel</code>:</p>

<pre><code>
cd /etc/init.d/
ln -s postgresql postgresql-devel
</code></pre>

<p>Then we start filling the <code>postgresql-devel</code> configuration file in the <code>/etc/sysconfig/pgsql</code> directory. <strong>It is important to note that the init script and the system configuration file have the same name</strong>.</p>

<pre><code>
cat <<EOF > /etc/sysconfig/pgsql/postgresql-devel
PGDATA=/var/lib/pgsql/data-devel
PGPORT=5433
PGLOG=/var/lib/pgsql/pgstartup.\${PGPORT}.log
EOF
</code></pre>

<p>Once this is done, you can initialise the data directory by running: <code>/etc/init.d/postgresql-devel initdb</code> or simply <code>service postgresql-devel initdb</code>.</p>

<p>Similarly you can control the startup and the shutdown of the service, by running - respectively:</p>

<ul>
<li><code>service postgresql-devel start</code></li>
<li><code>service postgresql-devel stop</code></li>
</ul>

<p>You can add/remove the script from the startup and the shutdown of the system by using <code>chkconfig</code> the same way you would with other services.</p>

<p>The <a href="http://wiki.postgresql.org/wiki/PostgreSQL_on_RedHat_Linux">PostgreSQL wiki contains a detailed page about this topic</a>, and I suggest that you read it along with this one. However, this simple article shows you how to easiliy integrate multiple PostgreSQL instances on the same Linux server, and manage them using the standard RedHat services infrastructure (thanks to the great job done by Devrim Gunduz).</p>
]]>
    </content>
</entry>

<entry>
    <title>Installing Greenplum Single Node Edition on Amazon&apos;s EC2</title>
    <link rel="alternate" type="text/html" href="http://blog.2ndquadrant.com/en/2010/03/installing-greenplum-sne-ec2.html" />
    <id>tag:blog.2ndquadrant.com,2010:/en//3.82</id>

    <published>2010-03-23T17:00:02Z</published>
    <updated>2010-03-30T05:38:43Z</updated>

    <summary>I have been thinking for a while now about adding Greenplum support to an open-source application for web analytics that I wrote a few years ago, which is called ht://Miner and uses PostgreSQL. In order to do this, I need...</summary>
    <author>
        <name>Gabriele Bartolini</name>
        <uri>http://www.2ndquadrant.it/chi-siamo/#bartolini</uri>
    </author>
    
        <category term="Gabriele&apos;s PlanetPostgreSQL" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="Greenplum" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="greenplumsneonamazonsec2" label="Greenplum SNE on Amazon&apos;s EC2" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://blog.2ndquadrant.com/en/">
        <![CDATA[<p>I have been thinking for a while now about adding Greenplum support to an open-source application for web analytics that I wrote a few years ago, which is called <a href="http://www.htminer.org/">ht://Miner</a> and uses PostgreSQL.</p>

<p>In order to do this, I need a multi-CPU environment. While still waiting to get our new servers installed here in our data centre in Italy, I decided to look at <a href="http://aws.amazon.com/ec2/">Amazon's Elastic Compute Cloud (EC2) infrastructure</a>. My intention is to do some benchmarking and spot the main differences in terms of performances between <a href="http://www.greenplum.com/products/single-node/">Greenplum Single Node Edition</a> and <a href="http://www.postgresql.org/">PostgreSQL 8.4</a>, my favourite DBMS.</p>

<p>If you wish to follow this article, you need to have an Amazon AWS account with a valid credit card. Do not worry, this test will only cost you a couple of dollars!</p>
]]>
        <![CDATA[<p>Greenplum SNE is a free version of the <a href="http://www.greenplum.com/products/greenplum-database/">Greenplum</a> database, one of the most advanced solutions for data warehousing and analytics, which is based on a shared nothing architecture and allows for data distribution and parallel processing on several nodes (servers).</p>

<p>The Single Node edition of Greenplum is a freely distributed version of Greenplum which can be installed on a single node. On a multi-processor architecture, Greenplum Single Node Edition allows to create multiple <strong>segments</strong> (usually one per core) and hence to take advantage of parallel processing. <a href="http://www.greenplum.com/products/single-node/">Greenplum Single Node Edition can be downloaded for free</a> from the main website.</p>

<p>My intention is to install it on a <strong><a href="http://aws.amazon.com/ec2/#instance">Large Instance</a></strong> running CentOS Linux 5.4 on Amazon. EC2's large instance has the following characteristics:</p>

<ul>
<li>7.5 GB of memory</li>
<li>4 EC2 Compute Units (2 virtual cores with 2 EC2 Compute Units each)</li>
<li>850 GB of local instance storage</li>
<li>64-bit platform</li>
</ul>

<p>I also decided to get a 10GB volume of Elastic Block Store (1 dollar a month), which I will format using the XFS file system. This volume will contain Greenplum data directories (this time I will try with just one single volume - next time I will try with a volume per segment).</p>

<p>The first step is to log into your <a href="https://console.aws.amazon.com/ec2/home">Amazon AWS management console</a>. Get your 10GB EBS volume and then launch a large instance using the <code>ami-ebe4cf9f</code> AMI file (AMI stands for Amazon Machine Image), a <a href="http://support.rightscale.com/18-Release_Notes/02-AMI/RightImages_Release_Notes">CentOS 5.4 image file distributed by RightScale</a> for a 64 bit architecture. You may have a different code, as I use a Europe based server.</p>

<p>I then attach the created volume to the instance I just started. The management console informs me that the volume has been attached on <code>/dev/sdf</code>. I grab the public DNS information and connect to the server via ssh as root, using my EC2 identity.</p>

<p>I install the YUM packages for XFS support, by running:</p>

<pre><code>yum install kmod-xfs.x86_64 xfsprogs xfsdump</code></pre>

<p>I create a primary partition on /dev/sdf using fdisk and format it:</p>

<pre><code>mkfs -t xfs /dev/sdf1 </code></pre>

<p>I then add the entry to <code>/etc/fstab</code>:</p>

<pre><code>/dev/sdf1 /greenplum xfs noatime 0 0</code></pre>

<p>and mount the partition on the <code>/greenplum</code> mount point:</p>

<pre><code>mkdir /greenplum
mount /greenplum</code></pre>

<p>Download Greenplum's Quickstart guide from the download area. Grab the URL of the 64bit RedHat installation of Greenplum and download it from the EC2 server using <code>wget</code> (or upload it from your computer using <code>scp</code>).</p>

<p>Follow the instructions on the quickstart guide about preparing your system to Greenplum (in particular kernel settings and limits).</p>

<p>Unzip the Greenplum's zip file and execute the .bin file. Answer yes to all the questions and Greenplum at the end of the process is installed in the <code>/usr/local/greenplum-db</code> directory.</p>

<p>Create the <code>gpadmin</code> user and set the password:</p>

<pre><code>useradd gpadmin
passwd gpadmin</code></pre>

<p>Prepare the data directories for the master and the segments:</p>

<pre><code>mkdir -p /greenplum/master
mkdir -p /greenplum/segment1
mkdir -p /greenplum/segment2
chown -R gpadmin:gpadmin /greenplum
</code></pre>

<p>Become <code>gpadmin</code> using the <code>su</code> command and include <code>source /usr/local/greenplum-db/greenplum_path.sh</code> into gpadmin's ~/.bashrc file. Load these settings. Edit the ~/single_host_file file, add <code>localhost</code> to its contents and launch:

 <pre><code>gpssh-exkeys -f ~/single_host_file</code></pre>

<p>Create the <code>~/gp_init_config</code> file with the following content:</p>

<pre><code>ARRAY_NAME="Greenplum" 
MACHINE_LIST_FILE=/home/gpadmin/single_host_file
SEG_PREFIX=gp
PORT_BASE=50000
declare -a DATA_DIRECTORY=(/greenplum/segment1 /greenplum/segment2)
MASTER_HOSTNAME=localhost
MASTER_DIRECTORY=/greenplum/master
MASTER_PORT=5432
ENCODING=UNICODE
</code></pre>

<p>Finally launch:</p>

<pre><code>gpinitsystem -c ~/gp_init_config</code></pre>

<p>At the end of the process, Greenplum SNE edition is installed on your Amazon's EC2 server running CentOS 5.4. On this server you can test the solution at quite a reasonable price (I was on the server for 7 hours today and I spent only 3 dollars).</p>

<p>I will post a few more articles on this topic in the next few days, and hopefully I will be able to post the first benchmarks too. Enjoy!</p>
]]>
    </content>
</entry>

</feed>


