Re: [GENERAL] Because PostgreSQL is compiling in old versions of OS?

2017-11-14 Thread Jose Maria Terry Jimenez
El 11/11/17 a las 0:48, DrakoRod escribió: Oh!! Jose Maria TJ wrote You're wrong, that are gcc versions, not OS versions. For example in my CentOS 6 Box cat /etc/redhat-release CentOS release 6.9 (Final) gcc -v [...trimmed...] gcc versión 4.4.7 20120313 (Red Hat 4.4.7-18) (GCC) Y

[GENERAL] Inserting large binary data into lo type table

2014-08-12 Thread Jose Moreira
I guess this is easy a question for the gurus, but afraid I cannot get te answer! I have this table: aif_test=# \d sbox; Table "public.sbox" Column | Type | Modifiers ++--- id | character varying(255) | not null data

[GENERAL] database design best pratice help

2013-01-28 Thread Jose Soares
Hi all, I have a question about database design best pratice. In my db I have about one hundred tables like this: code description To avoid to have a so great number of similar tables in the db I wonder if it is a good idea to unify all these tables in one big table like this: id code table_

[GENERAL] Unable to reload postgresql.conf without restarting

2013-01-03 Thread Jose Martinez
Hi, I made some changes to postgresql.conf and I want them to take effect without having to restart the server. I tried select pg_reload_conf(); /usr/pgsql-9.1/bin/pg_ctl reload but when I do 'show all', I see no changes take effect. There settings I tried to change are: -effective_cache_size

Re: [GENERAL] Simple Query Very Slow

2012-12-25 Thread Jose Martinez
Thanks for your responses. Sorry, I forgot to mention that the query actually takes 46 seconds despite what analyze (I dont quite understand the output of explain). We did perform a vacuum last Friday and it seems to help but not too much. We'll also try to recreate the indices. Here's the output

Re: [GENERAL] dump order by

2012-12-24 Thread Jose Soares
I'm sorry my first example was incomplete I need to migrate data from postgresql to oracle thus I have to use dump --column-inserts instead of copy to have an output like this but order by pk: INSERT INTO test (id, note, id_father) VALUES (6, 'Homer Simpson ', 5); INSERT INTO test (id, note, id_f

[GENERAL] Simple Query Very Slow

2012-12-21 Thread Jose Martinez
Hello, I have the following table and indices defined: CREATE TABLE ticket ( wid bigint NOT NULL DEFAULT nextval('tickets_id_seq'::regclass), eid bigint, created timestamp with time zone NOT NULL DEFAULT now(), status integer NOT NULL DEFAULT 0, argsxml text, moduleid character varyin

Re: [GENERAL] Two instances show same databases

2012-04-18 Thread Jose Hales-Garcia
lves my problem. Thank you, Jose ... Jose Hales-Garcia UCLA Department of Statistics

[GENERAL] Two instances show same databases

2012-04-18 Thread Jose Hales-Garcia
/usr/local/postgresql/pgsql-9.1.3/data -l /var/log/pgsql/pgsql-9.1.3/access.log start The lock files are in place: /tmp/.s.PGSQL.5432 /tmp/.s.PGSQL.5432.lock /tmp/.s.PGSQL.5433 /tmp/.s.PGSQL.5433.lock I appreciate any help. Sincerely, Jose ... Jose Hales-Garcia UCLA Department of Statistics

[GENERAL] log_statement variable does not admit all value

2012-01-21 Thread Jose Carlos Martinez Llario
Hi List, This variable admit according to docs: mod, ddl, all values. the all value is not accepted. I have postgres 9.1. s1=# set log_statement = all; ERROR: syntax error at or near "all" LINE 1: set log_statement = all; cheers, Jose -- Sent via pgsql-general mailing list (pgs

Re: [PERFORM] [GENERAL] DELETE taking too much memory

2011-07-08 Thread Jose Ildefonso Camargo Tolosa
On Fri, Jul 8, 2011 at 4:35 AM, Dean Rasheed wrote: > > On Thu, 2011-07-07 at 15:34 +0200, vincent dephily wrote: > >> Hi, > >> > >> I have a delete query taking 7.2G of ram (and counting) but I do not > >> understant why so much memory is necessary. The server has 12G, and > >> I'm afraid it'll g

Re: [GENERAL] Help with select with max and min please

2010-08-08 Thread Jose Maria Terry
El 08/08/10 21:49, Edoardo Panfili escribió: On 08/08/10 20.47, Jose Maria Terry wrote: Hello all, I need to run a query on a table that holds logged data from several water flow meters. I need the first and last values (with their associated time) for every logger in a time range. I&#x

[GENERAL] Help with select with max and min please

2010-08-08 Thread Jose Maria Terry
Hello all, I need to run a query on a table that holds logged data from several water flow meters. I need the first and last values (with their associated time) for every logger in a time range. I've tried this that returns the min and max time in the desired range for every logger, but i

[GENERAL] JASPA (JAva SPATial) for PostgreSQL and H2 released

2010-07-23 Thread Jose C. Martinez-Llario
which we hope it can connect to JASPA soon) The authors of this project are: Jose C. Martinez-Llario. Developer and project director. (1) Marta Gonzalez-Alcaide. Tester and document builder. (1) (1)Deparment of Cartographic Engineering, Geodesy and Photogrammetry at La Universidad

[GENERAL] Need Windows 2008 support and old installer kind

2010-07-02 Thread Jose Torres
I have PostgreSql 8.2.3 I need Windows 2008 Server support. What version do you recommend which windows installer is the same kind as version 8.2.3? And where do I download it?

Re: Re : Re : Re : [GENERAL] Select in temporary table

2010-04-01 Thread jose javier parra sanchez
Not sure about how de C# driver you use to connect, but if you have multiple connections, then you have multiple sessions. 2010/4/1 Sylvain Lara : >> Hello, >> >> I found some subjects like mine on many forums, but the given solution >> doesn't work for me. >> >> I'm using PostgreSQL 8.4. I'm work

Re: [GENERAL] How to test my new install

2010-02-01 Thread JOSE GREGORIO PAREDES ODAR
Señores, Saquen me de la lista ya no deceo resibir mas correos. atte. Jose Paredes Odar Jòse > From: r...@aarden.us > To: r...@iol.ie > CC: pgsql-general@postgresql.org > Subject: Re: [GENERAL] How to test my new install > Date: Mon, 1 Feb 2010 04:48:08 -06

[GENERAL] Error in crosstab using date_trunc

2009-12-05 Thread Jose Maria Terry Jimenez
amp") ),remota,valor from historico order by 1,2' ... changing quotes... but no luck. Do anyone knows if i can't use that function or if i'm doing something bad? Now i'm creating a temp table with timestamp "fixed"

Re: [Bacula-users] [GENERAL] Catastrophic changes to PostgreSQL 8.4

2009-12-02 Thread Jose Ildefonso Camargo Tolosa
Hi! On Thu, Dec 3, 2009 at 10:39 PM, Jerome Alet wrote: > On Thu, Dec 03, 2009 at 10:54:07AM +0800, Craig Ringer wrote: >> >> Anyway, it'd be nice if Bacula would convert file names to utf-8 at the >> file daemon, using the encoding of the client, for storage in a utf-8 >> database. > > +1 for me

[GENERAL] Conflict between MVCC and manual locking

2008-09-02 Thread jose lawrence
HI, I want to get more information whether  MVCC  conflicts with manual locking ? regards, Jose Lawrence Unlimited freedom, unlimited storage. Get it now, on http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/

Re: [GENERAL] postgre vs MySQL

2008-03-14 Thread jose javier parra sanchez
> itself open source, you have to pay to get a license. Pay for GPL software? You cannot be serious, GPL has no relation with monetary value. The GPL is a 'Usage License'. If i write GPL software to my clients, should i give it free of charge ?. That's absurd. -- Sent via pgsql-general mailin

Re: [GENERAL] postgre vs MySQL

2008-03-12 Thread jose javier parra sanchez
Take a look at pgpool . http://pgpool.projects.postgresql.org/ 2008/3/12, Ivan Sergio Borgonovo <[EMAIL PROTECTED]>: > On Wed, 12 Mar 2008 09:13:14 -0700 > paul rivers <[EMAIL PROTECTED]> wrote: > > > For a database of InnoDB tables, people tend to replicate the > > database, and then backup the

Re: [GENERAL] I can't restart postgres

2008-02-04 Thread Jose Quiroz
21 PM, Tom Lane wrote: Jose Quiroz <[EMAIL PROTECTED]> writes: 2008-02-01 17:53:33 PET PANIC: no se pudo leer el bloque 3788 de la relación 1663/17977/18281: Conseguido Hmm, what PG version is that? This looks a bit like the results of some bugs that were fixed awhile ago. I use the

Re: [GENERAL] I can't restart postgres

2008-02-01 Thread Jose Quiroz
The version of postgres is 8.1 And i don't have any backup of the system, I think that could be a problem to restore the system. thanks for answer. regards, jose On 01/02/2008, at 07:21 PM, Tom Lane wrote: Jose Quiroz <[EMAIL PROTECTED]> writes: 2008-02-01 17:53:33 PET PA

[GENERAL] I can't restart postgres

2008-02-01 Thread Jose Quiroz
rk, How I can restart the systema again? Jose Quiroz [EMAIL PROTECTED] ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster

[GENERAL] Emigrar SqlServer a Posgres

2007-08-17 Thread IVAN JOSE RIVERA URIARTE
Bueno me pueden dar una mano para emigrar una bases de dato de sql a posgres. Slds Ivan Rivera Tel#(505)8074075 Managua, Nicaragua __ Correo Yahoo! Espacio para todos tus mensajes, antivirus y antispam ¡gratis! Regístrate ya - http://correo.e

Re: [GENERAL] Limitations on 7.0.3?

2007-07-17 Thread ARTEAGA Jose
456c48, 19c7, ce, 1) + 28 0005bd38 _bt_insertonpg (4273d8, 19c7, 455988, 1, 456c48, 455bd0) + db0 Rgds/ Jose Arteaga -Original Message- From: ARTEAGA Jose Sent: Thursday, June 07, 2007 12:32 PM To: Alvaro Herrera; Richard Huxton Cc: pgsql-general@postgresql.org Subject: RE: [GENERAL] Li

[GENERAL] i need a rad/ide open source for work with postgresql

2007-06-28 Thread Mario Jose Canto Barea
why are you can make a good database relational server as postgresql 8.1, and dont make a rad/ide open source for programming with postgresql 8.1 as delphi\c++builder\progress 4gl ? thanks ___ Do Yo

Re: [GENERAL] Limitations on 7.0.3?

2007-06-08 Thread ARTEAGA Jose
to 1600 shared buffers (~125MB). I've since noticed a dramatic performance improvement, I hope that I've striked gold. But cannot claim victory yet it's only been up for 2 days. -Jose -Original Message----- From: Alvaro Herrera [mailto:[EMAIL PROTECTED] Sent: Thursday, June

[GENERAL] Limitations on 7.0.3?

2007-06-07 Thread ARTEAGA Jose
x27;d just like to understand if maybe I'm running into some sort of limit on the size of the database. My biggest table is currently at 1.5B tuples. Would appreciate if anyone could let me know or is aware of any limits with 7.0 version. Thx, Jose ---(e

Re: [GENERAL] XEON familiy 5000, 5100 or 5300?

2007-01-14 Thread Juan Jose Comellas
rue, does that mean the best CPU would be the last one, although the > clock is lower that the one of the other processors? > > Thanks for the infos, > > Cheers, > > --- > Philippe Lang > Attik System > > ---(end of broadca

[GENERAL] VPD

2006-07-13 Thread jose
/Hello, Oracle has a feature called "Virtual Private Databases" (VPD), that enables you to configure permissions at row level. Is there an equivalent feature in PostgreSQL? Thank you, jss / ---(end of broadcast)--- TIP 9: In versions below 8

[GENERAL] CALCULAR EDAD!

2006-04-27 Thread juan jose dominguez
Buenas, queria saber como sacar la edad de alguien. Me da el siguiente error con el siguiente codigo : -- Function: funcion_saca_edad() DROP TRIGGER trigger_saca_edad ON fechas; DROP FUNCTION funcion_saca_edad (); CREATE OR REPLACE FUNCTION funcion_saca_edad() RETURNS OPAQUE AS' DECLARE ed

Re: [GENERAL] Alternative to knoda, kexi and rekall?

2006-02-02 Thread Juan Jose Comellas
who > has packed it for Debian, I will do it. Oh yes, - I am > currently Co-Maintainer for some Packages in Debian. > > Greetings > Michelle Konzack > Systemadministrator > Tamay Dogan Network > Debian GNU/Linux Consultant -- Juan Jose Comellas

[GENERAL] Recuperar Base de datos

2005-12-14 Thread Juan Jose Siles Salinas
Hola tengo un problema serio, my servidor de bases de datos se arruino y no saque copia de mi base de datos, he instalado otro servidor con las mismas caracteristicas pero como hago para recuperar toda la base de datos del anterior disco 1GB gratis, Antivirus y Antispam Correo Yahoo!, el mejor

Re: [GENERAL] [OT?] ETL tools

2005-08-24 Thread Jose Gonzalez Gomez
2005/8/24, Robert Treat <[EMAIL PROTECTED]>: > On Wednesday 24 August 2005 03:50, Jose Gonzalez Gomez wrote: > > Googling a bit I have discovered that what I probably need is an ETL > > (extract, transform and load) tool, preferably open sourced and very > > PostgreSQL

[GENERAL] [OT?] ETL tools

2005-08-24 Thread Jose Gonzalez Gomez
an ETL (extract, transform and load) tool, preferably open sourced and very PostgreSQL friendly... does anybody on this list have experience with such kind of tools? Would anybody recommend anything? Maybe I could try another approach? Thanks in advance, best regards Jose ---(e

Re: [GENERAL] Foreign key to a view (UNION of two or more tables), any alternative?

2005-06-20 Thread Jose Gonzalez Gomez
On 6/19/05, Karl O. Pinc <[EMAIL PROTECTED]> wrote: > > On 06/19/2005 11:16:34 AM, Jose Gonzalez Gomez wrote: > > On 6/17/05, Bruno Wolff III <[EMAIL PROTECTED]> wrote: > > > On Fri, Jun 17, 2005 at 14:35:01 +0200, > > > Jose Gonzalez Gomez <[EMAIL P

Re: [GENERAL] Foreign key to a view (UNION of two or more tables), any alternative?

2005-06-19 Thread Jose Gonzalez Gomez
On 6/17/05, Bruno Wolff III <[EMAIL PROTECTED]> wrote: > On Fri, Jun 17, 2005 at 14:35:01 +0200, > Jose Gonzalez Gomez <[EMAIL PROTECTED]> wrote: > > > > The problem comes when you have questions that may be not applicable > > (8), or optional (doesn&#

[GENERAL] Foreign key to a view (UNION of two or more tables), any alternative?

2005-06-17 Thread Jose Gonzalez Gomez
e a foreign key referencing a view. So the question is: can this be solved in an easy portable way? maybe I should rethink the design so special values (not applicable / optional) aren't represented the same way or in the same column that real data? Any thoughts are rea

[GENERAL] Error al Subir base de datos

2005-01-18 Thread Juan Jose Siles Salinas
Cuando subo la base de datos con pg_restore -d mydb < mydb.tar restablece toda la informacion pero los acentos y ñ muestran caracteres en otra codificacion como puedo solucionar esto__Correo Yahoo!Espacio para todos tus mensajes, antivirus y antispam

[GENERAL] Retrieving values of int8 numeric field using ODBC with LInux clients.

2004-11-28 Thread Jose Mendoza
Using ODBC (unixODBC and iODBC) it is not possible to retrieve or insert values from fields with a data type of int8 (int64_t in the gcc compiler) when the operating system where the client is running is Linux. (Slackware 9.0, 9.1, 10.0 or RH 9.0). Any suggestion?   Thanks Jose Mendoza  

[GENERAL] Postgresql function in C++

2004-11-28 Thread Jose Mendoza
On august 2001 Eniar wrote above this issue the following:   “On Tue, Aug 07, 2001 at 07:49:06AM -0500, Phillip J. Allen wrote:> Hi all,> > I was reading Bruce Momjian book on PostgreSQL and his chapter on user> created functions stated that functions can be written in SQL, PL/PGSQL,> PL/

Re: [GENERAL] Row values

2004-07-02 Thread Juan Jose Costello Levien
Alvaro, Sorry, but, where are the log file and core you mentioned? I tried /var/log/postgresql but is in 0 file size. TIA On Fri, Jul 02, 2004 at 07:36:50AM -0300, Juan Jose Costello Levien wrote: I am writing my first trigger in C for PostgreSQL. It compiles Ok, and added it to the

[GENERAL] Error loading trigger in C

2004-07-01 Thread Juan Jose Costello Levien
Hello, I am trying to use a trigger function I wrote in C. Basically what I want to do is to audit a table when a row is inserted into another table by copying the row to the new table. It compiles Ok and I created a shared library trigger.so. But when I load it into pgAdmin it tells me 'An err

[GENERAL] pg_aclcheck: invalid user id #

2003-11-19 Thread jose
owner of this view, is any more in the database but if I do select from table it works fine. Is this a bug? Jose ---(end of broadcast)--- TIP 2: you can get off all lists at once with the unregister command (send "unreg

[GENERAL] update innside transactions?

2003-07-28 Thread jose antonio leo
Hi! I have a doubt, I have somethigs same this... init transaction update from tabla1 set estado=1 where art=0; update from tabla1 set estado=estado+1 where estado=1 final trasaction The second update take the first updates if we are in the same transaction? Tk -

[GENERAL] Update from select??

2003-07-03 Thread jose antonio leo
Hi all, I need do a update from t1 set col='P' where int_art = (SELECT int_art from t2 ). I know that thios sentence is not correct but I'd like do the update for everethigs rows that return the select. Is it posible? Tk very much Jose Antonio -Mensaje original-

[GENERAL] Recursive queries

2001-09-21 Thread Juan Jose Comellas
e db query. Does anyone have any idea how this can be done in PostgreSQL? Both Oracle and DB2 support this with their own proprietary syntax. -- Juan Jose Comellas ([EMAIL PROTECTED]) ---(end of broadcast)--- TIP 2: you can get off all lists at onc

Re: [GENERAL] SELECT FOR UPDATE

2001-08-24 Thread jose
;AFAIK it's the only way to deal with that problem. Think >about scaling as well. No enterprise class software has a DB >connection per interactive user. They all have some sort of >DB-middletear-presentation model where many users share a few >DB connections. > Jose Soares ---(end of broadcast)--- TIP 4: Don't 'kill -9' the postmaster

[GENERAL] SELECT FOR UPDATE

2001-08-22 Thread jose
table WHERE field=value FOR UPDATE at this point user2 can't do nothing except waiting for user1 unlock recors. My question is: - Is it possible to know in advance if the records of a given query are locked, to prevent to be locked for ever? Thank for any help, J

[GENERAL] maximum query length

2001-08-22 Thread jose
Hi all, I have a problem related with the maximum query length ERR: query is too long. Maximum length is 16382 I'm using PostgreSQL 6.5.3 and python Is this limit in the newer releases of PostgreSQL too? Thanks for any help Jose Soares ---(end of broa

[GENERAL] How to find out the weekday from a date???

2001-07-17 Thread Jose Manuel Lorenzo Lopez
Hello PG's, I want to extract the weekday of a given 'date' type field in my table when selecting. How can I do this? For example in a table "bschft_days" filled with values with type 'date' I want to select all the days within the month 'march' and output the respective weekday. I tryed this:

[GENERAL] postgresql on SuSE 7.1 with reiserfs

2001-06-07 Thread Jose Manuel Lorenzo Lopez
Hello community, anyone experienced problems using postgresql distribution on SuSE 7.1 with reiserfs??? I noticed the following problem: When creating a table 'tableA' as User A I can not insert in this table with User A. The error message is always: ERROR: tableA: Permission denied. The on

[GENERAL] About multiple access to a table

2001-06-01 Thread Jose Manuel Lorenzo Lopez
Hello community, I have a doubt about multiple access to a table in my database. When two people are accessing the same table for insert or update, is the affected row locked or am I supposed to lock this row explicit in my application??? Any help will by welcome! :) Best Regards / Un saludo /

[GENERAL] Locking a database

2001-04-30 Thread Jose Norberto
Hello all! I want to make a pg_dump of a database, but I must be sure that no one is logged in. Which is the best way to do it? Thanks in advance _ Get your FREE download of MSN Explorer at http://explorer.msn.com -

Re: [GENERAL] Permission denied while insert

2001-03-01 Thread Jose Manuel Lorenzo Lopez
Hello Tom, Tom Lane wrote: > Jose Manuel Lorenzo Lopez <[EMAIL PROTECTED]> writes: > > I created a table bdf_users as admin user 'postgres' and granted insert > > access for this table to public. > > Now I want to insert a line as user 'jose'

[GENERAL] Problem creating pgsql_perl5 module

2001-02-01 Thread Jose Manuel Lorenzo Lopez
Hello PG's, I am trying to use the Perl module for Postgresql, but when I start a simple example like this: #!/usr/local/bin/perl -w use Pg; $conn = Pg::connectdb("dbname=template1"); die $conn->errorMessage unless PGRES_CONNECTION_OK eq $conn->status; $result = $conn->exec("select tablename

[GENERAL] Error compiling postgres 7.0.3 for AIX 4.3.2

2001-01-25 Thread Jose Manuel Lorenzo Lopez
Hello PG's, I am trying to compile postgresql 7.0.3 on AIX 4.3.2. Configure worked fine with ./configure --with-CC=/usr/local/bin/gcc --without-CXX but after that make break up very early with the following output: Making postgres.imp ./backend/port/aix/mkldexport.sh postgres /usr/local/pgsql/

Re: [GENERAL] pg_dump:cannot find function for trigger

2000-11-24 Thread Claudio Jose Zanardi Grillo
Hi : I was using the wrong version(6.5.2) of pg_dump,that was in my PATH !!! With the correct version(7.0.2) the dump was OK !! Thanks !! Claudio Grillo Quoting Tom Lane <[EMAIL PROTECTED]>: > Claudio Grillo <[EMAIL PROTECTED]> writes: > > getTables(): relation 'tb_bomb

[GENERAL] Compiling postgresql 7.0.3 for WinNT

2000-11-23 Thread Jose Manuel Lorenzo Lopez
Hello community, I want to compile postgresql 7.0.3 on my WinNT at work, but I don't know how! Am I supposed to compile it with VisualC++, as I read in the docs I hope not, cause I am only a poor system admin!! :) I have cygwin-tools on my machine so I hoped that's all I need! Can anybody

[GENERAL] PGresult deleted after PQfinish(PGconn)

2000-09-26 Thread Jose Manuel Lorenzo Lopez
I am trying to create a class for my application that handles postgres access via the C interfaces. My question is the following: Will be PGresult also deleted when I close a connection with PQfinish(PGconn), or am I supposed to delete the handle on PGresult by myself after closing connection

Re: [GENERAL] Bug in date_part() ?

2000-03-30 Thread jose
It works fine for me ver 6.5.3. Stefan Loidl ha scritto: > Hi, > > I'm currently using postgres 6.4.2 on Sun Solaris. > There seems to be a strange bug in the date_part() function. > See below: > > accounting=> SELECT date_part('day','03-26-2000'::date); > date_part > - >25 > (1

Re: [GENERAL] How to retrieve table definition in SQL

2000-03-21 Thread Jose Soares
does, which I assume you are referring to. The problem is that postgress doesn't echo anything for \commands only real SQL commands. If it works on yours could you copy the echoed query and forward it to me. Jeff Seese > From: Jose Soares <[EMAIL PROTECTED]>

Re: [GENERAL] alter table

2000-03-13 Thread Jose Soares
; > select * from tmp where last='two' > > > > >ERROR: RestrictionClauseSensitivity: bad value -1.998613 > > > > i tried to search the mailing lists but i couldn't find anything > > > > any ideas? > > It's working here with version 6.5.3. Which version are you using? > > Wim -- Jose' Soares Bologna, Italy [EMAIL PROTECTED]

Re: [GENERAL] Max Length for VARCHAR?

2000-03-13 Thread Jose Soares
need a datatype that can hold very > large text? > > Chris > > -- > Christopher D. Gokey, Raytheon ITSS, NASA/GCMD > 18 Martin Road, Shelburne Falls, MA 01370 > Phone: Voice (413) 625-8129 / FAX 208-248-9055 > [EMAIL PROTECTED] / http://gcmd.nasa.gov -- Jose' Soares Bologna, Italy [EMAIL PROTECTED]

Re: [GENERAL] Date problem

2000-03-13 Thread Jose Soares
ntation about how to do this, and the closest thing to an answer came from this newsgroup. No luck so far tho' does anyone know how to do this and possibly and source of good documentation on this type of thing. Regards Scott McDaid edNET t: +44 131 625 5557 (direct dial) t: +44 131 466 7003 (office) -- Jose' Soares Bologna, Italy [EMAIL PROTECTED]  

[GENERAL] Re: [HACKERS] TRANSACTIONS

2000-02-23 Thread Jose Soares
> > - Don Baccus, Portland OR <[EMAIL PROTECTED]> > Nature photos, on-line guides, Pacific Northwest > Rare Bird Alert Service and other goodies at > http://donb.photo.net. > > -- Jose' Soares Bologna, Italy [EMAIL PROTECTED]

Re: [GENERAL] Re: [HACKERS] TRANSACTIONS

2000-02-23 Thread Jose Soares
ansactions like PostgreSQL? Tom Lane wrote: > Jose Soares <[EMAIL PROTECTED]> writes: > > --- > > Interbase, Oracle,Informix,Solid,Ms-Access,DB2: > > --- > >

[GENERAL] Re: [HACKERS] TRANSACTIONS

2000-02-23 Thread Jose Soares
Dmitry Samersoff wrote: > On 22-Feb-2000 Jose Soares wrote: > > begin transaction; > > create table tmp(a int); > > insert into tmp values (1); > > insert into tmp values (10); > > ERROR: pg_atoi: error reading &q

[GENERAL] TRANSACTIONS

2000-02-22 Thread Jose Soares
s and who is in the rigth path PostgreSQL or the others, considering the two examples reported below. Comments? -- Jose' Soares Bologna, Italy [EMAIL PROTECTED]

Re: [GENERAL] Need help creating a function

2000-02-04 Thread Jose Soares
txt); return m; end; ' language 'plpgsql'; Hitesh Patel wrote: > Does anyone have a function laying around that convert a 'money' type to > a float8 and return it? > > -- Jose' Soares Bologna, Italy [EMAIL PROTECTED]

Re: [GENERAL] what is "view?"

2000-01-26 Thread Jose Soares
A view is a table with a rule SELECT For excample if you have a table named my_table and you create a rule like: CREATE RULE "_RETmy_table" AS ON SELECT TO "my_table" DO INSTEAD SELECT * FROM your_table; In this way you your table my_table became a view. José Marc Tardif wrote: > When lis

Re: [GENERAL] Can || be used in ORDER BY?

2000-01-26 Thread Jose Soares
create table tablename ( field1 text, field2 text); CREATE insert into tablename values('bottom','yes'); INSERT 2282464 1 insert into tablename values('top','no'); INSERT 2282465 1 select field1,field2 from tablename order by (field1||'-top'); field1|field2 --+-- bottom|yes top   |no (2 r

Re: [GENERAL] max(oid)

2000-01-24 Thread Jose Soares
Peter Eisentraut wrote: > On 2000-01-21, Bruce Momjian mentioned: > > > > Is there a way to use the max aggregate on an oid field? When I try on > > > 6.5.3, I get the following error message: > > > > > > test=> select max(uid) from user_base; > > > ERROR: Unable to select an aggregate function

Re: [GENERAL] Bug with indexing int4?

2000-01-20 Thread Jose Soares
  Yury Don wrote: Hello All, I ma sorry, I have sent previous uncomplited e-mail accidentally. I have created the table CREATE TABLE "tt" (     "cc" int4); COPY "tt" FROM stdin; -2112563299 -2111287024 -2110307960 . 2146589610 2146589611 2146589612 \. About 30 000 records totally Then I a

Re: [GENERAL] How to get number of the week from datetime?

2000-01-14 Thread Jose Soares
"Hojdar Karel Ing." wrote: > Hi, > > how I can get some agregates (avg, min, max) for whole week (in specified > year)? > For example from table with two columns : time datetime and value float8. > And I want to get average of value based on whole weeks. If I try to use > date_part('week',time)

Re: [GENERAL] Import table from MS Access?

2000-01-05 Thread Jose Soares
I have some troubles to access PostgreSQL tables linked to M$-Access2000. Does anyone have any ideas, how to do that? Thanks. [EMAIL PROTECTED] wrote: > We've had good luck with something we found at: > > http://www.sevainc.com/ > > David Boerwinkle > > -Original Message- > From: Mike

Re: [GENERAL] Future of PostgreSQL

1999-12-25 Thread Jose Miguel Pereira Tavares
I don't want to wait until >things get very busy and then try to address these issues. We may >decide we don't want to do anything, but I would like to decide that >now. I don't quite understand why you think that a license change is neaded. One of the things that m

[GENERAL] Re: [HACKERS] \copy problem

1999-12-17 Thread Jose Soares
wrote: > > On 1999-12-16, Jose Soares mentioned: > > > I have a problem using \copy to load data into tables. > > > > I have to load data into a table that contains data type fields with > > NULL values. > > I tried using \N but it doesn't work. > &g

Re: [GENERAL] How to stop implicit rollback on certain errors?

1999-12-13 Thread Jose Soares
1 row created. SQL> select * from test; ID I D -- -- - 1 10 28-FEB-99 2 1.119 10-MAR-99 SQL> rollback; Rollback complete. SQL> select * from test; ID I D -- -- - 1 1

Re: [GENERAL] How to stop implicit rollback on certain errors?

1999-12-13 Thread Jose Soares
9 SQL> insert into TEST VALUES(1.999,'10-JAN-1999'); 1 row created. SQL> select * from test; I D -- - 10 28-FEB-99 1.999 10-JAN-99 SQL> rollback; Rollback complete. SQL> select * from test; I D -- - 10 28-FEB-99 Jose

Re: [GENERAL] Where is IFNULL?

1999-12-09 Thread Jose Soares
select * from a; a|b -+- 1|primo 2| (2 rows)   SELECT CASE WHEN b IS NOT NULL THEN 'pref.'||b||'.suf' ELSE 'pref.'||'NULL'||'.suf' END FROM a; case -- pref.primo.suf pref.NULL.suf (2 rows)   Jose' Sascha Ziemann wrote: &qu

Re: [GENERAL] How to stop implicit rollback on certain errors?

1999-12-09 Thread Jose Soares
r at or near "value" prova=> commit work; END prova=> select * from a; ERROR: a: Table does not exist. prova=> Who are right. Oracle or PostgreSQL ? Jose'

Re: [GENERAL] Date & Time

1999-12-01 Thread jose soares
SQL function. and CURRENT_TIMESTAMP is the exact SQL-92 syntax Jose'

Re: [GENERAL] update view

1999-11-29 Thread jose soares
You must create a rule to make a view updatable as in the following example:   drop table emp; create table emp (     empno    int,     ename   char(20),     job  char(12),     hiredate date,     sal  money,     comm int,     deptno   int,     level   

Re: [GENERAL] ODBC-client->Linux-server: datatype boolean not recognized?

1999-10-01 Thread jose soares
oh! this was for old releases, now I'm using the following: create function MsBool(bool,int4) returns bool as ' declare     bool_int int4; begin     if $1 is NULL then     return NULL;     end if;     if $1 is TRUE then if $2 <> 0 then ret

Re: [GENERAL] Comments on tables, functions, etc.

1999-02-26 Thread jose' soares
description -- a minha tabela (1 row) -- - Jose' - "No other success in life can compensate for failure in the home" (David O. McKay)  

Re: [GENERAL] timestamps

1999-02-24 Thread jose' soares
relationship in > postgres? > > Thanks for any help. Foreign key is not yet implemented but you may use triggers (See attached example). NB: You need v6.4.? to use examples. -- - Jose' - "No other success in life can compensate for failure in the home" (David

Re: [GENERAL] A mistake generates strange result

1999-02-12 Thread jose' soares
1; end; ' language 'plpgsql'; CREATE select text('12345678.2'::float8);   text -- 12345678.2 (1 row)      - Jose' - And behold, I tell you these things that ye may learn wisdom; that ye may learn that when ye are in the service of your fellow beings ye are only in the service of your God.    - Mosiah 2:17 -  

Re: [GENERAL] Newbie interface question

1999-01-22 Thread Jose' Soares
spanish and no sources), you can download it from: ftp://tlali.iztacala.unam.mx/pub/postgreSQL/hy4gl-inst.0.6.tgz -Jose'-

Re: [GENERAL] Representation of big integer numbers.

1999-01-18 Thread Jose' Soares
Memphisto wrote: > > Hi, > > Is there a way to display big integer numbers splitted by periods in > PostgreSQL queries? > > Example: 123.456.789 instead of 123456789 . > > Thanks in advance You can create a function to format numbers. S

Re: [GENERAL] select using date

1999-01-08 Thread Jose' Soares
Try: select current_date, CURRENT_DATE - INTERVAL '1 DAY'; ?column?|?column? --+-- 1999-01-08|1999-01-07 00:00:00+01 (1 row) PostgreSQL has a syntax sligth different than SQL92. You have to enclose '1 DAY' instead of '1' DAY

Re: [GENERAL] Transaction aborted?

1998-11-03 Thread Jose' Soares
me how to catch then and deal with them? > That's mean that you had an error during transaction. The only command that backend accepts at this point is the END. Jose'

Re: [GENERAL] float8 to text converter

1998-11-03 Thread Jose' Soares
C <--- 4714-11--2147483624 BC <--- (2 rows) Ooops! that seems like a bug. prova=> select f from a; f 1.7976931348623e+308 1.7976931348623e+308 (2 rows) Jose' Memphisto wrote: > > Hi, > > I'd like to know if there's an operator that conver

Re: [GENERAL] Re: "don't know how to print type 715"

1998-09-21 Thread Jose' Soares
aster command line. Another way to have this message should be compiling the parser subdirectory with -DPARSEDEBUG. (See the reply of Thomas G. Lockhart). Jose'

[GENERAL] Re: NOTICE: _outNode: don't know how to print type 715

1998-09-17 Thread Jose' Soares
ength| +---+--+---+ | campo1| int4 not null| 4 | +---+--+---+ Does someone knows what this message means ? Thank you, Jose'

Re: [GENERAL] Problem with apostrophe

1998-06-18 Thread Jose' Soares Da Silva
tered. > > There must be a work-around, but I can not find any solution. > > thank you for your help You may use doubble apostrophe as in O''Brian to match O'Brian this is SQL92.

[GENERAL] COALESCE() or NVL()

1998-06-12 Thread Jose' Soares Da Silva
30|candy NULL VALUES| | | (5 rows) SELECT name,NVL(salary)+100 AS dream FROM emp; name |dream ---+- Sam| 1300 Claire | 5100 Bill | 4300 Ginger | 4900 NULL VALUES| <--- I expected 100 here. (5 rows)

Re: [GENERAL] Setting the table separator in psql command mode

1998-06-09 Thread Jose' Soares Da Silva
On Tue, 9 Jun 1998, Mehrdad Ghassempoory wrote: > I am trying to set up the table separator (Default "|") to TAB > caharcter. > > I have tried : > > \f\t > \f \t > \f '\t' > > Without any luck. > How is it done? Try psql -F"" this mean ^I Jose'

  1   2   >