Re: [GENERAL] Getting my Database name in a C Extension

2014-10-03 Thread Cedric Berger
On 03/10/14 10:23, Michael Paquier wrote: On Fri, Oct 3, 2014 at 4:57 PM, Albe Laurenz mailto:laurenz.a...@wien.gv.at>> wrote: > Cedric Berger wrote: >>>> 1) What is the easiest way to get that directly in C? >>> >>> The usual locution is "get_d

Re: [GENERAL] Getting my Database name in a C Extension

2014-10-03 Thread Cedric Berger
On 02/10/14 18:13, Tom Lane wrote: Cedric Berger writes: 1) What is the easiest way to get that directly in C? The usual locution is "get_database_name(MyDatabaseId)". Ok, but then how do I find "MyDatabaseId" in, say, a BeginForeignScan() or GetForeignRelSize()

[GENERAL] Getting my Database name in a C Extension

2014-10-02 Thread Cedric Berger
installation/update scripts (like the @/extschema/@ substitution)? Thanks, -- Cedric Berger Precidata Sarl Maladière 71c 2000 Neuchâtel ced...@precidata.com 032 930 29 62 079 934 11 02 -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http:

[GENERAL] Getting my Database name in a C Extension

2014-10-02 Thread Cedric Berger
installation/update scripts (like the @/extschema/@ substitution)? Thanks, Cedric -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] simple update on boolean

2007-12-06 Thread Cedric Boudin
Ivan Sergio Borgonovo wrote: > On Thu, 06 Dec 2007 13:38:31 +0100 > Cedric Boudin <[EMAIL PROTECTED]> wrote: > > >> It was indeed a forest problem. >> both: >> >> set bolean_column= not bolean_column >> and >> set bolean_column= case w

Re: [GENERAL] simple update on boolean

2007-12-06 Thread Cedric Boudin
Cedric Boudin wrote: > Most honourable members of the list, > > this is a simple one, but I can't find the solution ( probably a > forest/tree problem). > > update table set bolean_column = set_it_to_its_inverse where fk = > some_value; > > or join

[GENERAL] simple update on boolean

2007-12-06 Thread Cedric Boudin
Most honourable members of the list, this is a simple one, but I can't find the solution ( probably a forest/tree problem). update table set bolean_column = set_it_to_its_inverse where fk = some_value; or join me in the dark forest cedric ---(end of broa

[GENERAL] scrollable cursor in functions

2007-11-30 Thread Cedric Boudin
-If not, is it a bug? have a nice day cedric ** ---(end of broadcast)--- TIP 9: In versions below 8.0, the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match

Re: [GENERAL] Tsearch2 / Create rule on select

2007-03-12 Thread cedric
Le samedi 10 mars 2007 06:32, Oleg Bartunov a écrit : > On Fri, 9 Mar 2007, Jean-Michel Pour? wrote: > > Le vendredi 09 mars 2007 ЪЪ 10:58 +0100, Magnus Hagander a ЪЪcrit : > >> No idea. Assuming you want to do it beforehand. otherwise, just create > >> the index and see how large it got? > > > > T

Re: [GENERAL] performance of partitioning?

2007-02-27 Thread cedric
Le mardi 27 février 2007 15:00, George Nychis a écrit : > Hey all, > > So I have a master table called "flows" and 400 partitions in the format > "flow_*" where * is equal to some epoch. > > Each partition contains ~700,000 rows and has a check such that 1 field is > equal to a value: > "flows_

Re: Wikipedia on Postgres (was Re: [GENERAL] postgresql vs mysql)

2007-02-23 Thread cedric
Le vendredi 23 février 2007 16:37, Ian Harding a écrit : > On 2/22/07, Alvaro Herrera <[EMAIL PROTECTED]> wrote: > > Joshua D. Drake escribió: > > > Andrej Ricnik-Bay wrote: > > > > On 2/23/07, Jim Nasby <[EMAIL PROTECTED]> wrote: > > > >> That depends greatly on what you're doing with it. Generall

Re: [GENERAL] Slow running to_tsvector (tsearch2 in PG 8.2.3)

2007-02-21 Thread cedric
Le mercredi 21 février 2007 15:44, Tom Lane a écrit : > Markus Schiltknecht <[EMAIL PROTECTED]> writes: > > Henrik Zagerholm wrote: > >> Is this normal? What can I tweak in postgresql.conf to speed up big > >> to_tsvector()? > > > > Hm.. seems not too unreasonable to me. > > Take a look at the stem

Re: [GENERAL] Retrieving PK of inserted row

2007-01-30 Thread cedric
Le mardi 30 janvier 2007 12:19, woger151 a écrit : > (3) Use LASTVAL for this one : look at http://people.planetpostgresql.org/xzilla/index.php?/archives/169-Is-lastval-evil.html > > My questions: > * Are any of these methods flawed? > * Is there any reason to prefer (1) to (2)? > * I'm not sure w

[GENERAL] is this a bug ?

2005-06-16 Thread Cedric BRINER
hi, I'm facing this problem DROP TABLE test; DROP TABLE new_test; CREATE TABLE test (id serial NOT NULL UNIQUE, nom varchar(32)); INSERT INTO test ("nom") values ('cedric'); INSERT INTO test ("nom") values ('felix'); INSERT INTO test ("nom"

[GENERAL] changing the sequence for a table

2005-06-15 Thread Cedric BRINER
hi, let me explain what I have done, and what I'd like to do with a small example: create table test (id serial, nom varchar(32)); INSERT INTO test ("nom") values ('cedric'); INSERT INTO test ("nom") values ('felix'); INSERT INTO test ("nom"

[GENERAL] create synopsis wrong ?

2004-05-04 Thread BRINER Cedric
Synopsis CREATE [ [ LOCAL ] { TEMPORARY | TEMP } ] TABLE /table_name/ ( { /column_name/ /data_type/ [ DEFAULT /default_expr/ ] [ /column_constraint/ [, ... ] ] | /table_constraint/ } [, ... ] ) [ INHERITS ( /parent_table/ [, ... ] ) ] [ WITH OIDS | WITHOUT OIDS ] .. .. so this will mean

[GENERAL] pgsql documentation error ?

2004-05-04 Thread BRINER Cedric
e varchar(32) CONSTRAINT nn__person__lastname NOT NULL , email varchar(64) CONSTRAINT u__person__email UNIQUE , phone varchar(32) CONSTRAINT u__person__phone UNIQUE); Am'I interpreting wrongly the documentation or ... am

[GENERAL] self referenced table ?

2004-03-19 Thread BRINER Cedric
Hi, how can we do this ? CREATE TABLE test (key1 int, key2 int , primary key (key1,key2), parent constraint parent references test ); Cédric BRINER ---(end of broadcast)--- TIP 6: Have you searched our list archives? http://archi