<?xml version="1.0" encoding="utf-8"?>
<!-- If you are running a bot please visit this policy page outlining rules you must respect. http://www.livejournal.com/bots/ -->
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:lj="http://www.livejournal.com">
  <id>urn:lj:livejournal.com:atom1:postgresql</id>
  <title>PostgreSQL</title>
  <subtitle>The best Open Source database</subtitle>
  <author>
    <name>PostgreSQL Users</name>
  </author>
  <link rel="alternate" type="text/html" href="http://community.livejournal.com/postgresql/"/>
  <link rel="self" type="text/xml" href="http://community.livejournal.com/postgresql/data/atom"/>
  <updated>2008-04-26T16:05:33Z</updated>
  <lj:journal username="postgresql" type="community"/>
  <link rel="service.feed" type="application/x.atom+xml" href="http://community.livejournal.com/postgresql/data/atom" title="PostgreSQL"/>
  <entry>
    <id>urn:lj:livejournal.com:atom1:postgresql:11783</id>
    <author>
      <email>decibel@decibel.org</email>
      <name>Decibel</name>
    </author>
    <lj:poster user="decibel45"/>
    <link rel="alternate" type="text/html" href="http://community.livejournal.com/postgresql/11783.html"/>
    <link rel="self" type="text/xml" href="http://community.livejournal.com/postgresql/data/atom/?itemid=11783"/>
    <title>First meeting of the Austin PUG, May 6th, 6PM</title>
    <published>2008-04-26T16:05:33Z</published>
    <updated>2008-04-26T16:05:33Z</updated>
    <content type="html">Part of Austin's Geek culture? Work for a company using an open source database? Interested in Keeping Postgres Weird?&lt;br /&gt;&lt;br /&gt;Then join us at the first meeting of the Austin Postgres User's Group on Tuesday, May 6th at 6PM!&lt;br /&gt;&lt;br /&gt;The rough agenda will be:&lt;br /&gt;6:00 - 6:30 Meet 'n greet&lt;br /&gt;6:30 - 7:15 Discuss goals for the AustinPUG&lt;br /&gt;7:15 - 7:45 Presentation: What's new it 8.3?&lt;br /&gt;7:45 - 8:00 Wrap-up&lt;br /&gt;&lt;br /&gt;The meeting will be held at Sun's offices in Riata:&lt;br /&gt;&lt;br /&gt;Sun Microsystems&lt;br /&gt;Building 8 - Longhorn Conference Room&lt;br /&gt;5300 Riata Park Ct&lt;br /&gt;Austin, TX 78727&lt;br /&gt;&lt;a href="http://maps.google.com/maps?f=q&amp;amp;hl=en&amp;amp;geocode=&amp;amp;q=5300+Riata+Park+Ct+78727&amp;amp;sll=37.0625,-95.677068&amp;amp;sspn=48.822589,63.808594&amp;amp;ie=UTF8&amp;amp;z=17&amp;amp;iwloc=addr"&gt;Map&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;We will have to register everyone who is attending as a visitor; to make this as efficient as possible, please RSVP to &lt;a href="mailto:austinpug@decibel.org"&gt;austinpug@decibel.org&lt;/a&gt;. Oh, and there's one more reason to register...&lt;br /&gt;&lt;br /&gt;FREE PIZZA!&lt;br /&gt;&lt;br /&gt;I'll be ordering from Mangia's; please let me know if you'd rather chow down on spinach, pepperoni, or Chicago style (or if you really can't eat any of the above...)</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:postgresql:11749</id>
    <author>
      <name>Igor M Podlesny</name>
    </author>
    <lj:poster user="poige"/>
    <link rel="alternate" type="text/html" href="http://community.livejournal.com/postgresql/11749.html"/>
    <link rel="self" type="text/xml" href="http://community.livejournal.com/postgresql/data/atom/?itemid=11749"/>
    <title>During DB development it became clear, that using a version control system (VCS) for sources ...</title>
    <published>2008-01-12T14:02:57Z</published>
    <updated>2008-01-12T14:02:57Z</updated>
    <content type="html">... in PlPgSQL (and might be for table definitions as well) is rather highly preferable. However, I haven't found a suitable tool yet. It seems that the simpliest way is to dump a DB with Postgresql's pg_dump and then put the source under VCS, but this is poorly satisfactory. I deem the better solution would be a tool ``decomposing'' this dump into a chunk-files, containing only one function definition perhaps with other needed entities. Yeah, this is not too hard to write by myself, but if there's something better (or at least already written) available, I'd use it. :-)</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:postgresql:11420</id>
    <author>
      <name>bootiack</name>
    </author>
    <lj:poster user="bootiack"/>
    <link rel="alternate" type="text/html" href="http://community.livejournal.com/postgresql/11420.html"/>
    <link rel="self" type="text/xml" href="http://community.livejournal.com/postgresql/data/atom/?itemid=11420"/>
    <title>database connecton pooling</title>
    <published>2007-10-15T04:20:06Z</published>
    <updated>2007-10-15T04:20:06Z</updated>
    <content type="html">What tools exist for db connection pooling for postgresql?&lt;br /&gt;Does one use something frmo postgresql or something from&amp;nbsp;say perl?&amp;nbsp;</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:postgresql:11167</id>
    <author>
      <email>tarkhil@webmail.sub.ru</email>
      <name>Alex Povolotsky</name>
    </author>
    <lj:poster user="tarkhil"/>
    <link rel="alternate" type="text/html" href="http://community.livejournal.com/postgresql/11167.html"/>
    <link rel="self" type="text/xml" href="http://community.livejournal.com/postgresql/data/atom/?itemid=11167"/>
    <title>grant select to * on user</title>
    <published>2007-09-10T10:30:39Z</published>
    <updated>2007-09-10T10:49:09Z</updated>
    <content type="html">Hello!&lt;br /&gt;&lt;br /&gt;How do I grant select privilege on all tables in a database to some user?&lt;br /&gt;&lt;br /&gt;UPDATE FOR DUMMIES: THIS IS A POSTGRESQL COMMUNITY.</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:postgresql:10931</id>
    <author>
      <email>tarkhil@webmail.sub.ru</email>
      <name>Alex Povolotsky</name>
    </author>
    <lj:poster user="tarkhil"/>
    <link rel="alternate" type="text/html" href="http://community.livejournal.com/postgresql/10931.html"/>
    <link rel="self" type="text/xml" href="http://community.livejournal.com/postgresql/data/atom/?itemid=10931"/>
    <title>Advanced working with IP addresses: Patricia</title>
    <published>2007-08-15T05:35:01Z</published>
    <updated>2007-08-15T05:35:01Z</updated>
    <content type="html">Hello!&lt;br /&gt;&lt;br /&gt;I'm working on storing many different logs in Postgresql database, and found a non-trivial task.&lt;br /&gt;&lt;br /&gt;Is there any good ways to find if an address belongs to a (large) set of networks? Or I'd better use PL/Perl and Net::Patricia?</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:postgresql:10669</id>
    <author>
      <email>tarkhil@webmail.sub.ru</email>
      <name>Alex Povolotsky</name>
    </author>
    <lj:poster user="tarkhil"/>
    <link rel="alternate" type="text/html" href="http://community.livejournal.com/postgresql/10669.html"/>
    <link rel="self" type="text/xml" href="http://community.livejournal.com/postgresql/data/atom/?itemid=10669"/>
    <title>PL/SQL and int to interval conversion</title>
    <published>2007-08-03T15:10:56Z</published>
    <updated>2007-08-03T15:10:56Z</updated>
    <content type="html">Hello!&lt;br /&gt;&lt;br /&gt;How do I, in PL/SQL function, convert integer value to time interval? Integer specifies time interval, in milliseconds.&lt;br /&gt;&lt;br /&gt;(I'm working on log parsing)</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:postgresql:10337</id>
    <author>
      <name>R. Bemrose</name>
    </author>
    <lj:poster user="powerlord"/>
    <link rel="alternate" type="text/html" href="http://community.livejournal.com/postgresql/10337.html"/>
    <link rel="self" type="text/xml" href="http://community.livejournal.com/postgresql/data/atom/?itemid=10337"/>
    <title>How to view database permissions</title>
    <published>2007-08-01T01:47:56Z</published>
    <updated>2007-08-01T01:53:45Z</updated>
    <content type="html">I'm fairly new to PostgreSQL, coming from a background in MySQL and, to a far lesser extent, Oracle 9i.&lt;br /&gt;&lt;br /&gt;I noticed that psql allows me to view all table permissions in a database using \dp or \z.  I can't figure out, however, how to view any privilges granted by a GRANT ALL PRIVILEGES ON DATABASE x TO y.  I'm sure there has to be a way, even if it's by querying the system tables/catalogs.&lt;br /&gt;&lt;br /&gt;So... will anyone tell me how to view these types of privileges?</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:postgresql:10224</id>
    <author>
      <name>rotellaro</name>
    </author>
    <lj:poster user="rotellaro"/>
    <link rel="alternate" type="text/html" href="http://community.livejournal.com/postgresql/10224.html"/>
    <link rel="self" type="text/xml" href="http://community.livejournal.com/postgresql/data/atom/?itemid=10224"/>
    <title>Some photos from PGDay 2007</title>
    <published>2007-07-11T07:24:50Z</published>
    <updated>2007-07-11T07:24:50Z</updated>
    <content type="html">&lt;a href="http://flickr.com/photos/8889549@N08/sets/72157600731834957/"&gt;http://flickr.com/photos/8889549@N08/sets/72157600731834957/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;For the full PGDay coverage you can refer to &lt;a href="http://www.planetpostgresql.org"&gt;http://www.planetpostgresql.org&lt;/a&gt;</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:postgresql:9947</id>
    <author>
      <name>rotellaro</name>
    </author>
    <lj:poster user="rotellaro"/>
    <link rel="alternate" type="text/html" href="http://community.livejournal.com/postgresql/9947.html"/>
    <link rel="self" type="text/xml" href="http://community.livejournal.com/postgresql/data/atom/?itemid=9947"/>
    <title>PGDay day one W00T!</title>
    <published>2007-07-07T05:04:53Z</published>
    <updated>2007-07-07T05:04:53Z</updated>
    <content type="html">Ok, I'm tired, my legs hurts but I'm very very happy.&lt;br /&gt;&lt;br /&gt;My PGDay started at 5 a.m. preparing last modification on slides of my mini courses.&lt;br /&gt;&lt;br /&gt;The day started with first panic at 8.30 a.m., because a lot of people, more than we expecting, was at registration desk asking to be included in the first italian PostgreSQL Day.&lt;br /&gt;&lt;br /&gt;My morning was very busy attending mini-courses about DBA base, advanced and just a little performance tuning talk on the veneziana room almost fullfilled with 40-50 people.&lt;br /&gt;&lt;br /&gt;I'm very happy about my performance, some guy asked me many tecnical things and the Faunaly guys told me that my audience was very very happy.&lt;br /&gt;&lt;br /&gt;I can't spend enough good words about PostgreSQL guys.&lt;br /&gt;&lt;br /&gt;David Fetter was the first Postgresql that I've meet in florence, he gave us a lot of elephant pins, and pleased us staying at PLUG site. Thanks David w00t!&lt;br /&gt;&lt;br /&gt;Josh Berkus it's fantastic, he speak very good italian, and he gave me a tequila bottle and a linux-freebsd t-shirt. Thank you Josh, sorry for my bad english.&lt;br /&gt;&lt;br /&gt;I'm very happy to meet so cool guys, as dalibo guys (thank you Cedric someone told me that you have apreciate my talk).&lt;br /&gt;&lt;br /&gt;The german guys are very cool.&lt;br /&gt;&lt;br /&gt;Ok, first day was good, tomorrow I'll introduce Josh keynotes and then I'll be in the audience.&lt;br /&gt;&lt;br /&gt;I'm looking forward to listen Simon Riggs PITR talk and meet Hans from Cybertec that just confirmed his talk tomorrow.&lt;br /&gt;&lt;br /&gt;And this evening, we'll have a concert at PLUG, if you are in Prato, you are invited.</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:postgresql:9532</id>
    <author>
      <name>TheNetImp</name>
    </author>
    <lj:poster user="thenetimp"/>
    <link rel="alternate" type="text/html" href="http://community.livejournal.com/postgresql/9532.html"/>
    <link rel="self" type="text/xml" href="http://community.livejournal.com/postgresql/data/atom/?itemid=9532"/>
    <title>Grant question.</title>
    <published>2007-06-06T17:42:26Z</published>
    <updated>2007-06-06T17:42:26Z</updated>
    <content type="html">Hi,&lt;br /&gt;&lt;br /&gt;I have a user.  let's call him   "websitedev".  I also have a database called "events" which was created by user "postgres".  I have a php application that this user "websitedev" is able to connect to the database, the problem is it doesn't have permissions to access the tables.  &lt;br /&gt;&lt;br /&gt;grant all privileges on database events to websitedev with grant option;&lt;br /&gt;&lt;br /&gt;But when I try to connect via the website application I am still getting.&lt;br /&gt;&lt;br /&gt;Warning: pg_exec() [function.pg-exec]: Query failed: ERROR: permission denied for relation tablename in path/to/file.php on line 59&lt;br /&gt;&lt;br /&gt;Ideas?&lt;br /&gt;&lt;br /&gt;TIA....</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:postgresql:9379</id>
    <author>
      <name>rotellaro</name>
    </author>
    <lj:poster user="rotellaro"/>
    <link rel="alternate" type="text/html" href="http://community.livejournal.com/postgresql/9379.html"/>
    <link rel="self" type="text/xml" href="http://community.livejournal.com/postgresql/data/atom/?itemid=9379"/>
    <title>Italian PostgreSQL Day 2007</title>
    <published>2007-05-10T09:50:38Z</published>
    <updated>2007-05-10T09:51:11Z</updated>
    <content type="html">The PostgreSQL Day (aka PGDday) is a day of celebration. Celebration for PostgreSQL and, on a wider view, for the free software and open-source communities based in Italy and Europe.&lt;br /&gt;&lt;br /&gt;The event (the first in Italy) will take place in Prato , Tuscany on July 6 and 7 2007, on the eve of the 21st anniversary of PostgreSQL, a project that was started on the 8th of July 1986, at the University of California, Berkeley.&lt;br /&gt;&lt;br /&gt;The Italian PGDay 2007 is a chance for Italian and European users and developers of PostgreSQL to catch up, learn, build relationships, get to know each other and consolidate a real network of professionals that use this outstanding product for the daily management of relational and object databases.&lt;br /&gt;&lt;br /&gt;Another fundamental goal for the event, is to promote the usage of PostgreSQL as a completely free tool for database management, a very competitive alternative to proprietary solutions.&lt;br /&gt;&lt;br /&gt;Among the others, the most suitable audiences for the event (and the most suitable targets for PostgreSQL usage as well) are:&lt;br /&gt;&lt;br /&gt;    * government organisations&lt;br /&gt;    * schools and universities (for direct usage and educational purposes as well)&lt;br /&gt;    * small and middle size companies&lt;br /&gt;&lt;br /&gt;PGDay is organised as a set of parallel talks, seminars, presentations, tutorials and practical workshops that will run throughout the day. Based on the target and the level of knowledge of the product, the happenings will be divided into:&lt;br /&gt;&lt;br /&gt;    * advanced technical level presentations&lt;br /&gt;    * basic technical level and use-case presentations&lt;br /&gt;&lt;br /&gt;The event will be preceeded by a national and European initiative known as Road to PGDay 2007, whose aims are to promote PGDay throughout Italy and Europe by involving local free software communities such as LUGs. &lt;br /&gt;&lt;br /&gt;More infos at: &lt;a href="http://www.pgday.it/en"&gt;http://www.pgday.it/en&lt;/a&gt;</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:postgresql:9115</id>
    <author>
      <name>Maryland Recruiter</name>
    </author>
    <lj:poster user="mdrecruiter"/>
    <link rel="alternate" type="text/html" href="http://community.livejournal.com/postgresql/9115.html"/>
    <link rel="self" type="text/xml" href="http://community.livejournal.com/postgresql/data/atom/?itemid=9115"/>
    <title>Great PostgreSQL DBA job!</title>
    <published>2007-05-09T22:29:03Z</published>
    <updated>2007-05-09T22:29:03Z</updated>
    <content type="html">I hope you don't mind me posting this here. I am looking for experienced PostgreSQL DBAs (a Jr and a Sr level) for a really exciting position in Utah, in a company culture where you can work and play hard in a great team environment with challenging technical problems (like massive pageviews and transactions).&lt;br /&gt;Skiing is optional.&lt;br /&gt;You can read a bit more on my LJ blog and contact me by email if you are interested or have a buddy who is passionate about open source and life in general.</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:postgresql:8351</id>
    <author>
      <name>rpik</name>
    </author>
    <lj:poster user="rpik"/>
    <link rel="alternate" type="text/html" href="http://community.livejournal.com/postgresql/8351.html"/>
    <link rel="self" type="text/xml" href="http://community.livejournal.com/postgresql/data/atom/?itemid=8351"/>
    <title>synching db's over modem / slip conn.</title>
    <published>2006-06-16T11:04:29Z</published>
    <updated>2006-06-16T11:04:29Z</updated>
    <content type="html">Hello. I have N remote stations with postgres 7.4.6 (for data collecting). I need to perform periodic sychronization one MASTER station with N remote stations via slip connection. Please help me to find a simple solution of this problem. Thanks.</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:postgresql:7966</id>
    <author>
      <name>Stubbed my goddamn toe again</name>
    </author>
    <lj:poster user="saifatlast"/>
    <link rel="alternate" type="text/html" href="http://community.livejournal.com/postgresql/7966.html"/>
    <link rel="self" type="text/xml" href="http://community.livejournal.com/postgresql/data/atom/?itemid=7966"/>
    <title>Networking issues</title>
    <published>2006-03-29T07:27:06Z</published>
    <updated>2006-03-29T07:27:06Z</updated>
    <content type="html">Hi all, first post etc.&lt;br /&gt;&lt;br /&gt;Lately I've been having some kind of problem with my PgSQL configuration and I'm trying to figure if it's my DB configuration or a problem with networking.&lt;br /&gt;&lt;br /&gt;Basically, I added the following line to my hba.conf:&lt;br /&gt;&lt;br /&gt;hostnossl	all         all         149.169.19.1/8        md5&lt;br /&gt;&lt;br /&gt;I also have the default:&lt;br /&gt;&lt;br /&gt;host    all         all         127.0.0.1/32          md5&lt;br /&gt;.&lt;br /&gt;&lt;br /&gt;At the same time, I changed my listen_addresses in postgresql.conf to '*'. &lt;br /&gt;&lt;br /&gt;Ever since doing so, whenever I start up the application I'm working on (which uses the .Net sql provider) about half the time, I get the error: "Unable to read data from the transport connection: An existing connection was forcibly closed on the remote host," and the server log says: "[time] LOG:  incomplete startup packet&lt;br /&gt;[time] LOG:  could not receive data from client: An operation was attempted on something that is not a socket."&lt;br /&gt;&lt;br /&gt;The other half of the time, it works just like normal. &lt;br /&gt;&lt;br /&gt;So, &lt;b&gt;what did I break?&lt;/b&gt;</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:postgresql:7730</id>
    <author>
      <name>The International Tess Conspiracy</name>
    </author>
    <lj:poster user="soltice"/>
    <link rel="alternate" type="text/html" href="http://community.livejournal.com/postgresql/7730.html"/>
    <link rel="self" type="text/xml" href="http://community.livejournal.com/postgresql/data/atom/?itemid=7730"/>
    <title>Database Migration</title>
    <published>2006-03-22T15:17:31Z</published>
    <updated>2006-03-22T15:17:31Z</updated>
    <content type="html">Can anyone suggest a utility or a script to convert a MySQL database to a PostgreSQL database? I've done a few google searches, but I haven't found anything suitable.&lt;br /&gt;&lt;br /&gt;Thanks!</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:postgresql:7405</id>
    <author>
      <email>cowbert@gmail.com</email>
      <name>Attck of teh AzN Cow flu!</name>
    </author>
    <lj:poster user="cowbert"/>
    <link rel="alternate" type="text/html" href="http://community.livejournal.com/postgresql/7405.html"/>
    <link rel="self" type="text/xml" href="http://community.livejournal.com/postgresql/data/atom/?itemid=7405"/>
    <title>reserved schema names?</title>
    <published>2005-10-13T05:32:14Z</published>
    <updated>2005-10-13T05:32:14Z</updated>
    <content type="html">Anybody know what other reserved schema names there are besides 'pg_*'? I tried to:&lt;pre&gt;
mcb211=# create schema '2005';
ERROR:  syntax error at or near "'2005'" at character 15
LINE 1: create schema '2005';
                      ^
&lt;/pre&gt;</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:postgresql:7051</id>
    <author>
      <email>alexey.matveichev@gmail.com</email>
      <name>Alexey Matveichev</name>
    </author>
    <lj:poster user="mrklein"/>
    <link rel="alternate" type="text/html" href="http://community.livejournal.com/postgresql/7051.html"/>
    <link rel="self" type="text/xml" href="http://community.livejournal.com/postgresql/data/atom/?itemid=7051"/>
    <title>crash recovery</title>
    <published>2005-09-08T16:32:20Z</published>
    <updated>2005-09-08T16:32:20Z</updated>
    <content type="html">PgSQL version: 7.3.x&lt;br /&gt;&lt;br /&gt;There was FS crash and I was able to get data/base and data/pg_clog directories of pgsql installation. Is it possible to recover DBs data from this directories?&lt;br /&gt;&lt;br /&gt;Will this work?&lt;br /&gt;1. Create DBs with identical structure&lt;br /&gt;2. Copy data/base directory over freshly created directories</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:postgresql:6158</id>
    <author>
      <email>alex@kuklin.ru</email>
      <name>Alex Kuklin</name>
    </author>
    <lj:poster user="alexkuklin"/>
    <link rel="alternate" type="text/html" href="http://community.livejournal.com/postgresql/6158.html"/>
    <link rel="self" type="text/xml" href="http://community.livejournal.com/postgresql/data/atom/?itemid=6158"/>
    <title>postgresql @ 2005-08-13T03:55:00</title>
    <published>2005-08-13T00:02:31Z</published>
    <updated>2005-08-13T00:02:31Z</updated>
    <content type="html">I faced a problem:&lt;br /&gt;&lt;br /&gt;pgsql ver &amp;gt;= 8.0&lt;br /&gt;table w/primary key (item_id, lang)&lt;br /&gt;languages list, ordered by priority&lt;br /&gt;&lt;br /&gt;needed:&lt;br /&gt;effectively find the most convenient row (item_id, lang) for given item_id.&lt;br /&gt;&lt;br /&gt;could someone give an advice?&lt;br /&gt;what language facility is the most suitable?</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:postgresql:5930</id>
    <author>
      <name>G33KGRRL</name>
    </author>
    <lj:poster user="weatherangel"/>
    <link rel="alternate" type="text/html" href="http://community.livejournal.com/postgresql/5930.html"/>
    <link rel="self" type="text/xml" href="http://community.livejournal.com/postgresql/data/atom/?itemid=5930"/>
    <title>Multiple Left Joins not obtaining all requested data</title>
    <published>2005-08-12T17:52:13Z</published>
    <updated>2005-08-12T18:10:21Z</updated>
    <content type="html">I have a query that runs in MySQL... It's happy, it's joyous and it just works.&lt;br /&gt;&lt;br /&gt;I have slightly changed the syntax of it so that it will work in Postgres.  Postgres will not let me use the same formatting of the query because of the types of joins I'm doing.  &lt;br /&gt;&lt;hr&gt;&lt;br /&gt;Here are the details:&lt;br /&gt;&lt;br /&gt;I have the following join, and in this join I am getting all of the data except that which joins the pa to the dao. When I try to join it using a left join, i get all of the data except this table. When I use a right join, I get nothing at all. If I make this a seperate join to dal (rather than nested as it is) I have no connection/path to the dao table because of the way that the postgres optimizer works, and I have to use another alias.&lt;br /&gt;&lt;br /&gt;Can you think of something I'm missing given the scenario? The query currently looks like this:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;
SELECT
    -- a bunch of columns here
    dr.profile_id

FROM
    dr,
    da,
    dal
    LEFT JOIN (  doo
        LEFT JOIN ( dao
            LEFT JOIN pa
            ON ( pa.dao_id = dao.dao_id ))  -- the problem area is here.
                                            -- There are cases where there are no related doo values set but
                                            -- I'm not sure how to write this better
        ON ( doo.dao_id = dao.dao_id
            OR pa.dal_id = doo.dal_id ))
    ON ( dal.dal_id = doo.dal_id
        OR dal.dal_id = pa.dal_id )

WHERE dr.dr_id = doo.dr_id
    AND dr.dr_id = '1'
    AND da.da_id = dal.da_id

ORDER BY da.name
&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;On the other hand, the MySQL query that works is as follows:&lt;br /&gt;&lt;pre&gt;
SELECT 
    -- alot of fields here
    dr.profile_id
FROM da, 
    dr,
    dal
        LEFT JOIN doo ON ( 
            dal.dal_id = doo.dal_id 
            AND doo.dr_id = dr.dr_id )
        LEFT JOIN dao ON ( doo.dao_id = dao.dao_id) -- joins with doo
        LEFT JOIN pa ON ( 
            dal.dal_id = pa.dal_id )

WHERE dr.device_range_id = '4'
    AND pa.p_id = dr.p_id 
    AND da.da_id = dal.da_id
    AND ( pa.pa_id IS NOT NULL 
             OR doo.doo_id IS NOT NULL)

ORDER BY da.name
&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;I have been working on this for a little too long now, and could really use a little help on this.&lt;br /&gt;&lt;br /&gt;Thanks!</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:postgresql:5817</id>
    <author>
      <email>sokolhacker@mail.ru</email>
      <name>лесной житель</name>
    </author>
    <lj:poster user="soko1"/>
    <link rel="alternate" type="text/html" href="http://community.livejournal.com/postgresql/5817.html"/>
    <link rel="self" type="text/xml" href="http://community.livejournal.com/postgresql/data/atom/?itemid=5817"/>
    <title>postgresql @ 2005-08-05T14:22:00</title>
    <published>2005-08-05T11:23:08Z</published>
    <updated>2005-08-05T11:23:08Z</updated>
    <content type="html">Prompt any free-of-charge hosting with support PHP+PostgreSQL. &lt;br /&gt;Thanks.</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:postgresql:5378</id>
    <author>
      <name>Lev Serebryakov</name>
    </author>
    <lj:poster user="blacklion"/>
    <link rel="alternate" type="text/html" href="http://community.livejournal.com/postgresql/5378.html"/>
    <link rel="self" type="text/xml" href="http://community.livejournal.com/postgresql/data/atom/?itemid=5378"/>
    <title>Problems with simple query: performace is poor :(</title>
    <published>2005-07-06T07:48:28Z</published>
    <updated>2005-07-06T07:48:28Z</updated>
    <content type="html">&lt;p&gt;I have simple table (it is smallest example, which shows problem):&lt;/p&gt;
&lt;pre&gt;
CREATE TABLE objects
(
&amp;nbsp; id serial NOT NULL,
&amp;nbsp; otyp text NOT NULL,
&amp;nbsp; prop text,
&amp;nbsp; CONSTRAINT solid_objects_pkey PRIMARY KEY (id)
) 
WITHOUT OIDS;
CREATE INDEX objects_otyp_idx ON objects USING btree (otyp);
CREATE INDEX objects_prop_idx ON objects USING btree (prop);
&lt;/pre&gt;
&lt;p&gt;This table is filled with 100'000 records. 80'000 of these records have "otyp" set to 'track', other 20'000 have some other values. "prop" is random text from 10 to 100 characters.&lt;/p&gt;
&lt;p&gt;I have three queries:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;pre&gt;SELECT * FROM objects WHERE otyp = 'track' LIMIT 25&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;&lt;pre&gt;SELECT * FROM objects ORDER BY prop LIMIT 25&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;&lt;pre&gt;SELECT * FROM objects WHERE otyp = 'track' ORDER BY prop LIMIT 25&lt;/pre&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;First and second queries are executed in 0.06 seconds (60ms). Third query takes 3.6 seconds to complete.&lt;/p&gt;
&lt;p&gt;Is it Ok for PostgreSQL? Third query is fairly typical, IMHO, and it is very strange, that it is soooo long.&lt;/p&gt;
&lt;p&gt;My platform is WinXP/SP2, iPIV-3.2Ghz(HT), 1Gb of RAM, HDD is Segate Barracuda 7200.7 SATA.&lt;/p&gt;
&lt;p&gt;PostgreSQL instructed to use up to 512Mb of memory (instead of default 1Mb).&lt;/p&gt;</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:postgresql:5352</id>
    <author>
      <email>sokolhacker@mail.ru</email>
      <name>лесной житель</name>
    </author>
    <lj:poster user="soko1"/>
    <link rel="alternate" type="text/html" href="http://community.livejournal.com/postgresql/5352.html"/>
    <link rel="self" type="text/xml" href="http://community.livejournal.com/postgresql/data/atom/?itemid=5352"/>
    <title>postgresql @ 2005-06-13T15:58:00</title>
    <published>2005-06-13T13:04:47Z</published>
    <updated>2005-06-13T13:05:50Z</updated>
    <content type="html">Problem at installation PostgreSQL with the instruction --enable-nls='ru': &lt;br /&gt;%./configure --enable-nls='ru'&lt;br /&gt;...&lt;br /&gt;configure: error: a gettext implementation is required for NLS &lt;br /&gt;&lt;br /&gt;Why?&lt;br /&gt;&lt;br /&gt;%whereis gettext &lt;br /&gt;&lt;br /&gt;gettext:/usr/local/bin/gettext/usr/local/man/man1/gettext.1.gz/usr/ports/devel/gettext &lt;br /&gt;&lt;br /&gt;%uname -a &lt;br /&gt;&lt;br /&gt;FreeBSD 5.4-STABLE FreeBSD 5.4-STABLE *1: Sun Jun 12 00:48:36 UTC 2005 root @:/usr/src/sys/i386/compile/GENERIC i386 &lt;br /&gt;&lt;br /&gt;Thanks.</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:postgresql:4919</id>
    <author>
      <email>cowbert@gmail.com</email>
      <name>Attck of teh AzN Cow flu!</name>
    </author>
    <lj:poster user="cowbert"/>
    <link rel="alternate" type="text/html" href="http://community.livejournal.com/postgresql/4919.html"/>
    <link rel="self" type="text/xml" href="http://community.livejournal.com/postgresql/data/atom/?itemid=4919"/>
    <title>Moving crypt-style passwords from 7.1.3 to 8.0?</title>
    <published>2005-04-05T14:48:18Z</published>
    <updated>2005-04-05T14:48:18Z</updated>
    <content type="html">Versions later than 7.2 no longer support passwd(8)-style password files to be specified in pg_hba.conf. The documentation for 8.0 says that I have to store user passwords in plaintext in &lt;i&gt;pg_shadow&lt;/i&gt; if I use &lt;i&gt;crypt&lt;/i&gt; as the auth-method in pg_hba.conf. Since I obviously don't know my users' plaintext passwords, and only have their crypt-hashes from the old passwd(8)-style file, how do I migrate these?</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:postgresql:4597</id>
    <author>
      <name>A Quark of A Different Spin.</name>
    </author>
    <lj:poster user="adameros"/>
    <link rel="alternate" type="text/html" href="http://community.livejournal.com/postgresql/4597.html"/>
    <link rel="self" type="text/xml" href="http://community.livejournal.com/postgresql/data/atom/?itemid=4597"/>
    <title>postgresql @ 2005-03-21T14:39:00</title>
    <published>2005-03-21T22:49:50Z</published>
    <updated>2005-03-21T22:49:50Z</updated>
    <content type="html">I am trying to migrate from MySQL to PostgreSQL to take advantage of store proceedures, but I'm mystified as to how to set up reliable db replication.&lt;br /&gt;&lt;br /&gt;In MySQL is it was easy to replicate the whole database (accounts included) between two servers. And if one server went down they would sync nicely. This let us do some load balancing and ensure we always had an up to date back-up server if the primary failed.&lt;br /&gt;&lt;br /&gt;PostgreSQL doesn't seem as polished in this regard.&lt;br /&gt;&lt;br /&gt;What I've found on the subject is this page:&lt;br /&gt;&lt;a href="http://www.infocopter.com/know-how/postgresql/replication/index.html"&gt;http://www.infocopter.com/know-how/postgresql/replication/index.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Unlike in MySQL, it seems I can't just make a table or a new db on a server and have it automatically replicated. I need to create them on both servers. And I need to put in special replication triggers in the db on the master server. It's annoying, but I can deal with that.&lt;br /&gt;&lt;br /&gt;What concerns me is if the master goes down and new rows are inserted on a db on the slave server, they could conflict with a primary key on the master server when it comes back.&lt;br /&gt;&lt;br /&gt;How can I set up a reliable replicated server pair, where if the master goes down, we can safely write to the slave and have the changes copied back to the master when it comes back?</content>
  </entry>
</feed>
