Re: [ADMIN] Migrating Data Between PG Tables

2004-10-05 Thread banghe
One sql statement can solve this: sql> isnert into table_b (id, name, summary) select id, name, desc from table_a; Banghe Mike Darretta wrote: Does anyone have a suggestion on the best way to migrate data between two slightly different tables? For example: Table A id : integer n

Re: [ADMIN] Problem with inserts from subselects

2004-04-23 Thread banghe
= tmp.route_id LIMIT 10 ; This is without ( ). Banghe Tyler Ward wrote: I'm using postgres 7.3.x (the default installed on Fedora Core 1) and I'm running into a serious bug in the insert performance. When I try a query like this... INSERT INTO table_a (session, sent, data_row, di

Re: [ADMIN] SQL-Statement

2003-11-13 Thread banghe
Hi, Your query should be written in much simple way: SELECT Monatsbeitrag.lfdid, Daten.Kundennummer FROM Daten, Monatsbeitrag WHERE (Daten.Vetrag widerufen = 2) AND Daten.ewmanfrdat IS NOTNULL AND (Monatsbeitrag.ID = Daten.Kundennummer ) AND ((Monatsbeitrag.Monat + 14 ) = '2003-10-27 00

Re: [ADMIN] Money Data type

2000-06-13 Thread banghe
You may use type real? -- Banghe Meibell Contreras wrote: hello; Anyone knows if postgres has a bigger data type than money...when you use this; (not with dollar definition); the money data type is not enough... graciasMeibell

Re: [ADMIN] Output from 'timestamp' column!?

2000-05-03 Thread Banghe
You just need to cut this column. e.g. use perl you can use: new_column = substr(old_column, 0, 19) Or you can use the function to convert to what you want when you select this column from the table. Check functions -- Banghe Jack Zhu wrote: > Hi, all: > > PostgreSQL 7 Beta 5 o

Re: [ADMIN] plpgsql Regression test fails on Digital Unix

1999-10-11 Thread Xing Banghe
Here is my suggestion: Just for this test, change plpgsql.so access code as 777, after you test, change it back as 640. Macht das schoen? Grusse, --Bangh Reiner Dassing wrote: > Hello! > After installation the PostgreSQL Version 6.5.2 on Digital Unix V4.0F > I did the regression tests. > > T

Re: [ADMIN] New Administrator

1999-10-04 Thread Xing Banghe
Upon his requirement, you also need to grant this administrator as a superuser of postgres when you run shell command createuser. --Banghe "Doran L. Barton" wrote: > Not long ago, Mike Field proclaimed... > > I'm getting a bit confused by the manual on this one, so

Re: [ADMIN] Grant rule???

1999-09-21 Thread Xing Banghe
> >RULE has special meaning. Other previliges you can grant are: > >select, delete, update > > > >--Banghe > > Ahhh! Just what is the special meaning of RULE? It means you grant a user privilege that he can create RULE on the table. ( you can get more info ho

Re: [ADMIN] Cannot connect to server.

1999-09-20 Thread Xing Banghe
make sure the postmaster on postgres server is running. You can check if it is listening: netstat -an | grep 5432 --Banghe Andrew Higgs wrote: > Hi all, > > I am writing a program in Delphi which connects to my linux postgres box > (6.5.1). This was working just fine until th

Re: [ADMIN] Grant rule???

1999-09-20 Thread Xing Banghe
under psql you can get help for SQL statement grant. grant rule on table to someone menas you grant someone on the table previlige: RULE. RULE has special meaning. Other previliges you can grant are: select, delete, update --Banghe hal Lynch wrote: > In the following grant statement w

Re: [ADMIN] configurate postmaster

1999-09-17 Thread Xing Banghe
Hi , There is no problem to do so. Check this file: pg_hba.conf You can set host-base access control. --Banghe [EMAIL PROTECTED] wrote: > Hello, > > My postgresql base is on machine A. Me I'm on machine B. > I would like > to connect to my postgresql system from machine

[ADMIN] how to add entry in pg_hba.conf?

1999-08-04 Thread Xing Banghe
Hello, Q: how to add entry in pg_hba.conf? I manually added an entry in pg_hba.conf as: host template1 postgres_IP 255.255.255.0 banghe banghe But as I run the code and got msg: the file pg_hba.conf is crashed. I wonder if I can manually edit this file. (to locally connect postmaster seems

Re: [ADMIN] data problem

1999-01-17 Thread Xing Banghe
. If it is yes, then maybe the problem is postgres user setting. -- Banghe Matthew wrote: > I'm running postgresql 6.5.1 on Redhat 6.0. I am trying to move a > database to a new box running 6.5.3. So I tried a 'pg_dump db_name > > db_name.out' so that I could rest