Re: Fw: [GENERAL] ERROR: could not open relation with OID 59132

2009-12-10 Thread Postgre Novice
From: Adrian Klaver To: pgsql-general@postgresql.org Cc: Postgre Novice Sent: Thu, December 10, 2009 10:23:21 PM Subject: Re: Fw: [GENERAL] ERROR: could not open relation with OID 59132 On Wednesday 09 December 2009 11:34:39 pm Postgre Novice wrote: >

Fw: [GENERAL] ERROR: could not open relation with OID 59132

2009-12-09 Thread Postgre Novice
Can someone please share some light on this - Forwarded Message From: Postgre Novice To: pgsql-general@postgresql.org Sent: Wed, December 9, 2009 5:23:18 PM Subject: [GENERAL] ERROR: could not open relation with OID 59132 Hello , after google search i havent found any

[GENERAL] ERROR: could not open relation with OID 59132

2009-12-09 Thread Postgre Novice
Hello , after google search i havent found any solution or clue for this specific case: Background: Postgresql: 8.3.0 select version(); version PostgreSQL 8.3.

[GENERAL] Merry Xmas and Happy Holidays

2008-12-23 Thread novice
Hello Peeps, I'd like to take this opportunity to wish you nice helpful bunch my warm greetings. Hope you have a fantastic time and looking forward to learn more in the new future. Novice tgurl ;-) -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to

Re: [GENERAL] Getting text into a table

2008-12-10 Thread novice
2008/12/11 Mark Morgan Lloyd <[EMAIL PROTECTED]>: > I wonder if I could ask a question which might be marginally off-topic: how > do people assemble multiple lines of text into a row in a table? > > I've got a number of cases where I've got a file containing some sort of > activity log, where a seq

Re: [SQL] [GENERAL] date range query help

2008-11-19 Thread novice
omg - how embarrassing. so sorry :( 2008/11/20 brian <[EMAIL PROTECTED]>: > novice wrote: >> >> 2008/11/20 Rodrigo E. De León Plicet <[EMAIL PROTECTED]>: >>> >>> On Wed, Nov 19, 2008 at 10:03 PM, novice <[EMAIL PROTECTED]> >>> wrote: >

Re: [SQL] [GENERAL] date range query help

2008-11-19 Thread novice
2008/11/20 Rodrigo E. De León Plicet <[EMAIL PROTECTED]>: > On Wed, Nov 19, 2008 at 10:03 PM, novice <[EMAIL PROTECTED]> wrote: >> sorry I get nothing :( > > Of course not. None of the dates you gave in the example overlap. > But it should still have the 1st entry wi

Re: [GENERAL] date range query help

2008-11-19 Thread novice
2008/11/20 brian <[EMAIL PROTECTED]>: > novice wrote: >> >> 2008/11/20 Adam Rich <[EMAIL PROTECTED]>: >>> >>> select call.call_id, >>> call.datetime, >>> mobile_custodian.user_id, >>> call.mobile_no &

Re: [GENERAL] date range query help

2008-11-19 Thread novice
2008/11/20 Adam Rich <[EMAIL PROTECTED]>: >> Now user Ben has passed his mobile to user Josh and we issued Josh his >> mobile on 2008-10-15. >> >> 1. Is it possible for me to write a query that will have the fields >> >> call.call_id, >> call.datetime, >> mobile_custodian.user_id, >> call.mobile_no

[GENERAL] date range query help

2008-11-19 Thread novice
Hi, We have two tables. select * from mobile_custodian; custodian_id | user_id | issue_date | return_date | mobile_no --+-++-+- 4 | Ben | 2008-10-11 | 2008-10-13 | 09455225998 5 |Josh | 2008-10-15 |

[GENERAL] phone database schema

2008-10-29 Thread novice
Firstly, thank you very much to all advice that has been passed through. These groups have thought me many new tricks and I wish all of you the best. Now, I'm trying to create a schema for mobile phone custodian and billing system. Any advice would be greatly appreciated, I've included a schema

Re: [GENERAL] Query help

2008-08-14 Thread novice
2008/8/15 novice <[EMAIL PROTECTED]>: > Hi, > I have a table > > select id, config_id, start_day, end_day, start_time, end_time from config; > > id | config_id | start_day | end_day | start_time | end_time > -+---+---+-++---

[GENERAL] Query help

2008-08-14 Thread novice
Hi, I have a table select id, config_id, start_day, end_day, start_time, end_time from config; id | config_id | start_day | end_day | start_time | end_time -+---+---+-++-- 1 | 101 | Mon | Sun | 08:30:00 | 18:00:00 2 |

Re: [GENERAL] posgresql-8.2 startup problem

2007-11-06 Thread novice
Thanks Tom! I already solved the problem by putting "127.0.0.1 localhost" in /etc/hosts file.. On Nov 2, 12:04 am, [EMAIL PROTECTED] (Tom Lane) wrote: > novice <[EMAIL PROTECTED]> writes: > > I just installed postgres-8.2 using the command line > > apt-get instal

[GENERAL] posgresql-8.2 startup problem

2007-11-01 Thread novice
Hi guys, I just installed postgres-8.2 using the command line apt-get install postgres-8.2 and it seems the installation went ok, but when it tries to start postgres , it fails with this error message below... (by the way I am running ubuntu fiesty and on an amazon ec2-image). Any ideas what is wr

Re: [GENERAL] work hour calculations

2007-09-08 Thread novice
On 07/09/2007, Filip Rembiałkowski <[EMAIL PROTECTED]> wrote: > 2007/9/5, Raj A <[EMAIL PROTECTED]>: > > correction: > > > > > The result I'm expecting for the above to be > > > > > >notification_time| finished_time | actual > > > +--

Re: [GENERAL] work hour calculations

2007-09-04 Thread novice
correction: > The result I'm expecting for the above to be > >notification_time| finished_time | actual > ++- 2007-07-06 15:50:00+10 | 2007-07-09 07:10:00+10 | 01:20:00 > 2007-07-07 12:30:00+10 | 2007-07-09 07

[GENERAL] work hour calculations

2007-09-04 Thread novice
Hello All, SELECT notification_time, finished_time, sum(finished_time - notification_time) as actual FROM log GROUP BY notification_time, finished_time; gives me: notification_time| finished_time | actual ++- 20

[GENERAL] raw data into table process

2007-08-21 Thread novice
I am trying to record the following entries into a table. I'm curious to know if there's an efficient/effective way of doing this? This entries come from an ancient datalogger (note: separated by space and uses YY/MM/DD format to record date) Plain file sample.dat 3665 OK BS 07/08/1

Re: [GENERAL] Join query help

2007-08-20 Thread novice
Many many thanks for all the advice =) On 21/08/07, Michael Glaesemann <[EMAIL PROTECTED]> wrote: > > On Aug 20, 2007, at 19:52 , novice wrote: > > > Try 2: Here are my DDLs & DMLs > > Thanks for the data. It looks like the data you provided in the first > s

Re: [GENERAL] Join query help

2007-08-20 Thread novice
Try 2: Here are my DDLs & DMLs -- Start CREATE TABLE record ( record_id integer PRIMARY KEY, record_date timestamp with time zone NOT NULL ); INSERT INTO record(record_id, record_date) VALUES ('1', '2007-07-23 11:30:37'); INSERT INTO record(record_id, record_date) VALUES ('2', '2007-07-27 1

Re: [GENERAL] copy command - date

2007-08-12 Thread novice
;, 24, 2)||substr("data", 32, 6) as inspection_date On 13/08/07, novice <[EMAIL PROTECTED]> wrote: > Thanks again guys =) > I've managed to use temp table to load the data and create new table/s > Now, how do I convert a text field with 'YY/MM/DD' to date

Re: [GENERAL] copy command - date

2007-08-12 Thread novice
Thanks again guys =) I've managed to use temp table to load the data and create new table/s Now, how do I convert a text field with 'YY/MM/DD' to date field 'DD/MM/YY'? On 13/08/07, Tom Lane <[EMAIL PROTECTED]> wrote: > Paul Lambert <[EMAIL PROTECTED]&

Re: [GENERAL] copy command - date

2007-08-12 Thread novice
Thank you! That was exactly what I was looking for =) On 13/08/07, Paul Lambert <[EMAIL PROTECTED]> wrote: > Paul Lambert wrote: > > novice wrote: > >> I'm using pg version 8.2.4. What is the best method to load this data? > >> I have just a little over

Re: [GENERAL] copy command - date

2007-08-12 Thread novice
| timestamp with time zone | On 13/08/07, Tom Lane <[EMAIL PROTECTED]> wrote: > novice <[EMAIL PROTECTED]> writes: > > I'm having trouble loading the date field. Should I convert it first > > or should I be using a text processor before loading the data in? >

[GENERAL] copy command - date

2007-08-12 Thread novice
What is the best method to load the following? I'm having trouble loading the date field. Should I convert it first or should I be using a text processor before loading the data in? 3665 OK SM 07/07/13 06:09 5162 OK SM 07/02/12 06:10 3665 OK SM 07/06/19 06:10