[GENERAL] How I can get the real data type result instead of integer data type?

2006-03-20 Thread Wei Wei
In a query, there is something like order by count(id)/age where both id and age are the integer data type. >From a query result, I believe the operation count(id)/age yields a integer. I >need it in real data type. After searching the online document, I haven't >found any related informatio

[GENERAL] Date & Time with time zone

2006-04-09 Thread Wei Wei
I try to understand how the D&T information is stored/presented in PG. In the application, the data is reported as Sun Apr 09 12:40:52 PDT 2006 - Pacific Standard Time But, in the DB, it is stated as 2006-04-09 14:40:53.093-07 It doesn't seen right to me. Both are on the same box and the date

Re: [GENERAL] Date & Time with time zone

2006-04-10 Thread Wei Wei
Thanks for your reply, Martijn. And see below. > On Sun, Apr 09, 2006 at 12:07:50PM -0800, Wei Wei wrote: > > I try to understand how the D&T information is stored/presented > > in PG. In the application, the data is reported as > > > > Sun Apr 09 12:40:52 P

Re: [GENERAL] Date & Time with time zone

2006-04-10 Thread Wei Wei
Thanks for your response, Tom. And please see the below. > > In the application, the data is reported as > > > > Sun Apr 09 12:40:52 PDT 2006 - Pacific Standard Time > > > > But, in the DB, it is stated as > > > > 2006-04-09 14:40:53.093-07 > > > > It doesn't seen right to me. Both are on the sa

[GENERAL] Unable to Install - "unable to write inside TEMP environment variable path"

2011-05-20 Thread Wei
When I install the 9.0.x version on my Window Visita Laptop, I get the error. The "Windows Scripting Host" is up. So it is not the topic of this article: http://1stopit.blogspot.com/2011/01/postgresql-83-and-84-fails-to-install.html How to resolve this problem? Thanks. - w

Fwd: [GENERAL] Unable to Install - "unable to write inside TEMP environment variable path"

2011-05-20 Thread Wei
Forwarded message From: Wei Date: May 20, 2011 Subject: [GENERAL] Unable to Install - "unable to write inside TEMP environment variable path" To: pgsql-general@postgresql.org When I install the 9.0.x version on my Window Visita Laptop, I get the e

Re: Fwd: [GENERAL] Unable to Install - "unable to write inside TEMP environment variable path"

2011-05-22 Thread Wei
Can anyone help?  On May 20, 2011, Wei wrote: Forwarded message From: Wei <wei...@lycos.com>Date: May 20, 2011Subject: [GENERAL] Unable to Install - "unable to write inside TEMP environment variable path"To: pgsql-general@postgresql.orgWhen I install the

[GENERAL] repost: unable to install PG

2011-05-22 Thread Wei
When I install the 9.0.x version on my Window Visita Laptop, I get the error. The "Windows Scripting Host" is up. So it is not the topic of this article: http://1stopit.blogspot.com/2011/01/postgresql-83-and-84-fails-to-install.html How to resolve this problem? -- Sent via pgsql-general mail

[GENERAL] Is there a better way to do this?

2007-08-28 Thread Wei Weng
;'1 second''::INTERVAL; END; ' LANGUAGE 'plpgsql'; Basically the function takes two parameters, and add the second one (as days) onto the first one (as timestamp without timezone) I don't really like this implementation. Is there a more concise way to do this?

[GENERAL] [Church group] Chinese New Year Celebration Dinner this Friday (02/08/2008)

2008-02-06 Thread Wei Song
address: Liou's House Chinese Restaurant 1245 Jacklin Rd Milpitas, CA 95035 (408) 263-9888 - Jiani & Wei ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster

[GENERAL] cache lookup failed for relation X

2008-03-08 Thread Wei Wu
I found some posts be developers discussing this issue last Jan. and Nov.. See link below. http://search.postgresql.org/search?m=1&q=cache+lookup+failed+for+relation &l=&d=&s= But have not been able to find any suggestion on how an end user can use to get around this problem. Basically, we ha

[GENERAL] Looking for real configuration data

2009-09-02 Thread Wei Zheng
, feel free to email Wei Zheng (wzheng at cs dot rutgers dot edu). Thanks for your time, Wei Zheng PhD student, Vivo Research Group (http://vivo.cs.rutgers.edu) Rutgers University -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription

[GENERAL] Question on MD5 authentication

2006-10-12 Thread Wei Weng
I am trying to connect to machine A (192.168.1.155) from a different machine B (192.168.1.180), with password transmitted as a MD5 string. I have the following lines in my pg_hba.conf file. hostall all 192.168.1.180 255.255.255.1md5 I created a database user "test_user

Re: [GENERAL] Question on MD5 authentication

2006-10-12 Thread Wei Weng
On Thu, 2006-10-12 at 15:38 -0400, Wei Weng wrote: > I am trying to connect to machine A (192.168.1.155) from a different > machine B (192.168.1.180), with password transmitted as a MD5 string. > > > I have the following lines in my pg_hba.conf file. > > hostall

Re: [GENERAL] Question on MD5 authentication

2006-10-12 Thread Wei Weng
On Thu, 2006-10-12 at 15:50 -0400, Tom Lane wrote: > Wei Weng <[EMAIL PROTECTED]> writes: > > I have the following lines in my pg_hba.conf file. > > hostall all 192.168.1.180 255.255.255.1md5 > > Not relevant to your immediate problem, but:

Re: [GENERAL] Question on MD5 authentication

2006-10-12 Thread Wei Weng
e, all 3 strings are different) Why the difference? Is there something missing ?? Thanks Wei ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster

[GENERAL] Question on inserting and querying at the same time.

2006-11-07 Thread Wei Weng
EXPLAIN ANALYZE will hang) My question is : Is my suspicion correct? And would upgrading to 8.0 (or any later 8.x version of postgresql) help with my specific demand? I am using PostgreSQL 7.4.13. Thanks Wei ---(end of broadcast)--- TIP 9: In

[GENERAL] Enable monitoring on the health of postgres db

2006-11-12 Thread tam wei
Dear all, I am intending to use JMX to enable my application to be monitored by the NMS. I am wondering is there any SNMP agent already build-up for postgres DB and can be plugged into the JMX environment ? I have found that a project for implementing a postgres db SNMP agent (http://pgfoundry.o

[GENERAL] Storing files in postgres db

2006-12-03 Thread tam wei
Dear all, I am intending to store the files inside the postgres DB using the type text (all the files will be pre-encode into base64. The reason for not using the type bytea as I encountered some undesired format(the original file alignment can't be preserved) while extracting the content and dis

[GENERAL] Anything I can do to speed up this query?

2006-12-05 Thread Wei Weng
l time=0.037..6084.385 rows=211286 loops=1) Total runtime: 6520.499 ms what else can I improve? Thanks in advance Wei ---(end of broadcast)--- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq

Re: [GENERAL] Anything I can do to speed up this query?

2006-12-05 Thread Wei Weng
Forgot to mention the version I am using. PostgreSQL 7.4.13 Thanks On Tue, 2006-12-05 at 15:56 -0500, Wei Weng wrote: > I have a table that has roughly 200,000 entries and many columns. > > The query is very simple: > > SELECT Field1, Field2, Field3... FieldN F

Re: [GENERAL] Anything I can do to speed up this query?

2006-12-05 Thread Wei Weng
I am running this in the same machine as the database though. Thanks On Tue, 2006-12-05 at 16:02 -0500, Jan de Visser wrote: > On Tuesday 05 December 2006 3:56 pm, Wei Weng wrote: > > I have a table that has roughly 200,000 entries and many columns. > > > > The

Re: [GENERAL] Anything I can do to speed up this query?

2006-12-06 Thread Wei Weng
On Tue, 2006-12-05 at 15:56 -0500, Wei Weng wrote: > I have a table that has roughly 200,000 entries and many columns. > > The query is very simple: > > SELECT Field1, Field2, Field3... FieldN FROM TargetTable; > > TargetTable has an index that is Field1. > I thi

[GENERAL] State of Postgresql Replication?

2006-06-09 Thread Wei Weng
Is there any OSS solutions (stable) for postgresql replication for postgresql 8.0? Sincerely, Wei Weng ---(end of broadcast)--- TIP 6: explain analyze is your friend

[GENERAL] Run 2 versions of Postgresql on one machine?

2004-02-06 Thread Wei Wang
chine so I really hope that I could run 7.1.3 and 7.4.1 on the same machine and run his code on 7.1.3 while developing pl/pgsql on 7.4.1. Now can anyone give a hand on whether this can be done, and if so, can you give me a little direction on how to do this? Many thanks,

Re: [GENERAL] Run 2 versions of Postgresql on one machine?

2004-02-06 Thread Wei Wang
do I come up a way to access binary commands of both versions quickly without adding absolute path infront of those of 7.4.1? Many thanks, Wei - Original Message - From: "Tom Lane" <[EMAIL PROTECTED]> To: "Peter Alberer" <[EMAIL PROTECTED]> Cc: &quo

Re: [GENERAL] to_char problem

2004-02-17 Thread Wei Wang
In that case, how do I RAISE NOTICE a text variable such as: DECLARE tempstring text; BEGIN RAISE NOTICE tempstring; END - Original Message - From: "Richard Huxton" <[EMAIL PROTECTED]> To: "Wei Wang" <[EMAIL PROTECTED]>; "pgsql" <[EMAIL PRO

[GENERAL] About table schema

2004-05-25 Thread Wei Shi
Hi, does anyone know how to get the schema information of a table. More specifically, I would like to know 1. which field(s) are primary keys? 2. the data type of each field of a table? 3. If a field is a foreign key, what field/table it is referring to. Thanks. Wei

Re: [GENERAL] About table schema

2004-05-25 Thread Wei Shi
Is there a function interface to get this information other than from "psql" comman line interface? Thanks. Wei --- Janning Vygen <[EMAIL PROTECTED]> wrote: > Am Mittwoch, 26. Mai 2004 00:36 schrieb Wei Shi: > > Hi, does anyone know how to get the schema > infor

Re: [GENERAL] About table schema

2004-05-25 Thread Wei Shi
This is great. Thanks. Wei --- Mike Mascari <[EMAIL PROTECTED]> wrote: > Wei Shi wrote: > > Is there a function interface to get this > information > > other than from "psql" comman line interface? > > If you start psql with the '-E' switch, y