Re: [GENERAL] timestamps, formatting, and internals

2012-06-02 Thread Jasen Betts
On 2012-05-29, David Salisbury wrote: > > > On 5/27/12 12:25 AM, Jasen Betts wrote: >> The query: "show integer_datetimes;" should return 'on' which means >> timestamps are microsecond precision if it returns 'off' your database >> was built with floating point timstamps and equality tests will be

[GENERAL] Re: Disable Streaming Replication without restarting either master or slave

2012-06-02 Thread Jasen Betts
On 2012-05-29, Fujii Masao wrote: > > You'd like to restart the *promoted* standby server as the standby again? > To do this, a fresh base backup must be taken from the master onto > the standby before restarting it, even if there has been no update since > the standby had been promoted. > I'd li

Re: [GENERAL] timestamps, formatting, and internals

2012-06-02 Thread Jasen Betts
On 2012-05-30, David Salisbury wrote: > > > On 5/30/12 9:42 AM, Adrian Klaver wrote: >> Think I realize where the confusion is now. When Jasen mentioned integer >> datetimes he was referring to the internal storage format Postgres uses >> to record the datetime value. Via the magic of programming(

Re: [GENERAL] Updateable Views or Synonyms.

2012-06-02 Thread Jasen Betts
On 2012-05-29, Tim Uckun wrote: > I am wondering if either of these features are on the plate for > postgres anytime soon? I see conversations going back to 2007 on > updateable views and some conversations about synonyms but obviously > they have never been added to the database for some reason o

Re: [GENERAL] select current_setting('transaction_isolation')

2012-06-02 Thread Samba
JDBC does not query the database for the transaction isolation level for the current session/connection on its own unless you application [or even it could be hibernate] queries the same by calling : connection.getTransactionIsolation() method. I doubt even if Hibernate would do that since it does

Re: [GENERAL] [PERFORM] Array fundamentals

2012-06-02 Thread Jeff Davis
On Sat, 2012-06-02 at 10:05 -0700, idc danny wrote: > Now, if I want do do the following: > select CombineStrings(ARRAY[SplitString2Array("SomeTextColumn"), 'New > string to add']) from "SomeTable" > > i get the following error: > array value must start with "{" or dimension information This disc

[GENERAL] SELECT issue with references to different tables

2012-06-02 Thread Alexander Reichstadt
Hi, I have a query I cannot figure out in postgres or actually in any other way than using the client front end, which I would prefer not to do. So, I have 4 tables pets persons companies pets_reference pets have owners, the owner at any point in time is either a persons or a company, never b

Re: [GENERAL] SELECT issue with references to different tables

2012-06-02 Thread Chris Angelico
On Sun, Jun 3, 2012 at 4:50 AM, Alexander Reichstadt wrote: > So, I have 4 tables > > pets > persons > companies > pets_reference > > pets have owners, the owner at any point in time is either a persons or a > company, never both at the same time. > > A pet owner can change to persons A, resultin

Re: [GENERAL] SELECT issue with references to different tables

2012-06-02 Thread David Johnston
On Jun 2, 2012, at 14:50, Alexander Reichstadt wrote: > Hi, > > I have a query I cannot figure out in postgres or actually in any other way > than using the client front end, which I would prefer not to do. > > So, I have 4 tables > > pets > persons > companies > pets_reference > > pets have