Re: [BUGS] BUG #8326: pgbench tps wrong BUG

2013-07-26 Thread Fabien COELHO
when client thread big, the tps without connection time wrong number of threads: 100 duration: 10 s My 0.02 €: I cannot test that on my laptop! What kind of server is this? The thread start time is currently taken before thread creation. The overhead of creating 100 threads compared to

Re: [BUGS] issue about information_schema REFERENTIAL_CONSTRAINTS

2010-09-03 Thread Fabien COELHO
If you're going to use something which is PostgreSQL-specific, you may as well write your own views or use the "native" tables and views directly. I wish I could write portable code, if possible:-) I'm basically writing views on top of the information_schema under the assumption that what i

Re: [BUGS] issue about information_schema REFERENTIAL_CONSTRAINTS (resent)

2010-09-03 Thread Fabien COELHO
If you're going to use something which is PostgreSQL-specific, you may as well write your own views or use the "native" tables and views directly. I wish I could write portable code, if possible:-) I'm basically writing views on top of the information_schema under the assumption that what is

Re: [BUGS] issue about information_schema REFERENTIAL_CONSTRAINTS

2010-09-03 Thread Fabien COELHO
Maybe you shouldn't be using the information_schema in the first place. Sure, I could write non standard code for every database instead of trying to write a portable code which work on all of them directly:-) I think that trying to do the portable way, under the assumption that the standa

Re: [BUGS] issue about information_schema REFERENTIAL_CONSTRAINTS

2010-09-03 Thread Fabien COELHO
Well, one must choose between to evil: Yeah, exactly. I think that the current tradeoff is just fine. Hmmm. I think exactly the contrary. There is no point in having a non reliable feature. ISTM that very few people use the information schema, and if the query results is not reliable, i

Re: [BUGS] issue about information_schema REFERENTIAL_CONSTRAINTS

2010-09-03 Thread Fabien COELHO
Dear Tom, Still for the sake of argument: Note that (2) fails for long names; you have to do something to compress to NAMEDATALEN. Indeed. What if the type is changed to TEXT? It is just a view after all. How important is it to stick to "sql_identifier"? The big problem with either of th

Re: [BUGS] issue about information_schema REFERENTIAL_CONSTRAINTS

2010-09-02 Thread Fabien COELHO
Hallo, \d information_schema.referential_constraints View "information_schema.referential_constraints" ... FROM pg_namespace ncon JOIN pg_constraint con ON ncon.oid = con.connamespace JOIN pg_class c ON con.conrelid = c.oid Well, for the sake of argument, how would you pro

Re: [BUGS] issue about information_schema REFERENTIAL_CONSTRAINTS

2010-09-01 Thread Fabien COELHO
.connamespace JOIN pg_class c ON con.conrelid = c.oid -- Fabien Coelho - CRI, Maths & Systèmes, MINES ParisTech -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs

Re: [BUGS] issue about information_schema REFERENTIAL_CONSTRAINTS

2010-09-01 Thread Fabien COELHO
Dear Tom, The REFERENTIAL_CONSTRAINTS table in the information_schema references a constaint through its database/schema/name, but this information is not unique, so it may identify several constraints, thus the information derived may not be consistent. Postgres does not enforce that constra

[BUGS] issue about information_schema REFERENTIAL_CONSTRAINTS

2010-08-31 Thread Fabien COELHO
Hello, I haven't found a bug management system about postgresql, so here is a mail. Maybe this issue was already reported, sorry if it is the case. I have seen anything about the information_schema in pg todo list. This is tested on postgresql 8.4.4. The REFERENTIAL_CONSTRAINTS table in the

Re: [BUGS] Foreign key constaint can be broken

2010-01-26 Thread Fabien COELHO
I found a way to break a foreign key constraint in PostgreSQL [ ie, make a rule that defeats an ON DELETE CASCADE operation ] This isn't a bug, it's just the way things work. Rules (and triggers) apply to the commands that implement foreign key updates, so a poorly written rule can make those

Re: [BUGS] "strange" rule behavior with nextval on new.* fields

2004-11-15 Thread Fabien COELHO
Dear Michael, This comes up often and the response is usually something like, "Rules are macros, which is why referring to NEW.id causes another evaluation of nextval(). If you don't want that to happen then use a trigger." That is indeed what I gathered;-) It might be sensible to avoid multiple e

Re: [BUGS] "strange" rule behavior with nextval on new.* fields

2004-11-12 Thread Fabien COELHO
st be C or PL*. That could also be a candidate TODO, next to "improve the doc"? Thanks for your answer, -- Fabien Coelho - [EMAIL PROTECTED] ---(end of broadcast)--- TIP 9: the planner will ignore your desire to choose an index scan if your

Re: [BUGS] "strange" rule behavior with nextval on new.* fields

2004-11-11 Thread Fabien COELHO
between beta3 and beta4, on a debian linux box under an intel architecture. -- Fabien Coelho - [EMAIL PROTECTED] ---(end of broadcast)--- TIP 6: Have you searched our list archives? http://archives.postgresql.org

[BUGS] "strange" rule behavior with nextval on new.* fields

2004-11-10 Thread Fabien COELHO
Dear debuggers, I'd like to report the following "strange" behavior that I encountered while trying (a bad idea, I know) to use a rule as a "poor man sql-trigger". It seems that "on update do also" rules the new.* fields are evaluated several times instead of being computed once, which is a bad id

[BUGS] error in simple sql function breaks connection

2004-09-06 Thread Fabien COELHO
Dear bug-hunters, With a nearly current cvs head version I have the following: psql> SELECT VERSION(); ... PostgreSQL 8.0.0beta2 on i686-pc-linux-gnu, compiled by GCC gcc (GCC) 3.3.4 (Debian 1:3.3.4-6sarge1) psql> CREATE TABLE foo(id SERIAL PRIMARY KEY, data TEXT); psql> CREATE FUNCTION add_data(

Re: [BUGS] BUG #1240: memory leak in JDBC driver build 215

2004-09-06 Thread Fabien COELHO
ld do it by default). Something like: DECLARE CURSOR foo FOR your-select-query...; FETCH FORWARD 10 FROM foo; FETCH FORWARD 10 FROM foo; FETCH FORWARD 10 FROM foo; ... CLOSE foo; Hope this help. -- Fabien Coelho - [EMAIL PROTECTED] ---(end of broadcast)--- TIP 4: Don't 'kill -9' the postmaster

[BUGS] ALTER INDEX broken in CVS head?

2004-08-31 Thread Fabien COELHO
st. The connection to the server was lost. Attempting reset: Failed. @: !> then psql> ALTER INDEX bla.t_pkey SET TABLESPACE pg_default; ERROR: could not create relation 1663/19396/19473: File exists So the state is pretty incoherent. Well, I can still drop the database. -- F

Re: [PATCHES] [BUGS] BUG #1219: pgxs does not work fully

2004-08-24 Thread Fabien COELHO
> Am Dienstag, 17. August 2004 14:26 schrieb Fabien COELHO: > > The patch adds missing the "libpgport.a" file to the installation under > > "install-all-headers". It is needed by some contribs. I install the > > library in "pkglibdir", but I was

Re: [BUGS] 8.0.0beta1 small inconsistency in pg_aggregate listing

2004-08-20 Thread Fabien COELHO
t, either, > but regproc can't do anything about that. Cast to regprocedure if you > want to see a more helpful display of the function. Much better indeed. Thanks a lot for the light. Have a nice day. -- Fabien Coelho - [EMAIL PROTECTED] ---(end of broadcast

[BUGS] 8.0.0beta1 small inconsistency in pg_aggregate listing

2004-08-20 Thread Fabien COELHO
alog.sum pg_catalog.max pg_catalog.min ... However psql \da show all of them in pg_catalog, as expected. I cannot see the difference in the initialization script to explain that. Maybe something wrong with the regproc type? -- Fabien Coelho - [EMAIL PROTECTED] ---(end of b

Re: [BUGS] BUG #1222: database owner should have implicit control

2004-08-19 Thread Fabien COELHO
> > "ALTER SCHEMA foo OWNER TO bla" if you're a super user. > > And using 8.0... I saw that but was looking for a 7.4 solution... Maybe: UPDATE pg_namespace SET nspowner= WHERE nspname='foo'; -- Fabien Coelho - [EMAIL PROTECTED] ---

Re: [BUGS] BUG #1223: RedHat Linux 8

2004-08-18 Thread Fabien COELHO
7;; Hope this help, have a nice day, -- Fabien Coelho - [EMAIL PROTECTED] ---(end of broadcast)--- TIP 2: you can get off all lists at once with the unregister command (send "unregister YourEmailAddressHere" to [EMAIL PROTECTED])

Re: [BUGS] BUG #1222: database owner should have implicit control

2004-08-18 Thread Fabien COELHO
> > was just looking at this this morning. is there anyway to change > ownership of a schema? i couldn't find one and thought i'd ask before > whacking on the system tables. "ALTER SCHEMA foo OWNER TO bla" if you're a super user. -- Fabien Co

Re: [BUGS] broken contrib/dbsize in cvs head?

2004-08-11 Thread Fabien COELHO
offer tablespace size as well. Ok. I must admit that I did not pay attention to the unapplied patches queue. Thanks, -- Fabien Coelho - [EMAIL PROTECTED] ---(end of broadcast)--- TIP 7: don't forget to increase your free space map settings

[BUGS] broken bug-report web form

2004-08-11 Thread Fabien COELHO
I wanted to report a bug, but could not: http://www.postgresql.org/bugform.html ("Report a bug" link from postgresql main page) leads to: "Not Found, The requested URL /bugform.php was not found on this server." -- Fabien Coelho - [EMAIL PROTECTED] --

[BUGS] broken contrib/dbsize in cvs head?

2004-08-11 Thread Fabien COELHO
*** [dbsize.o] Error 1 It seems that GetDatabasePath was updated, but not all its callers were fixed. -- Fabien Coelho - [EMAIL PROTECTED] ---(end of broadcast)--- TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]

Re: [BUGS] Bug: century/millenium still broken

2004-08-10 Thread Fabien COELHO
ith tricky cases. The formula may be simplified, but all these cases must pass. Please keep them. Have a nice day, -- Fabien Coelho - [EMAIL PROTECTED]*** ./src/backend/utils/adt/timestamp.c.origFri Jun 4 15:50:58 2004 --- ./src/backend/utils/adt/time

Re: [BUGS] BUG #1161: User permissions are kept, even if user is

2004-07-02 Thread Fabien COELHO
nexistent users during time vacuum? Although that could be done, I'm not sure I would like such a thing to happen. -- Fabien Coelho - [EMAIL PROTECTED] ---(end of broadcast)--- TIP 9: the planner will ignore your desire to choose an index scan if

Re: [BUGS] BUG #1145: silent REVOKE failures

2004-06-10 Thread Fabien COELHO
grand "TODO" item;-) IMHO, this should be a prerequisite to adding "roles". Hace a nice day, -- Fabien Coelho - [EMAIL PROTECTED] ---(end of broadcast)--- TIP 9: the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match

Re: [BUGS] BUG #1145: silent REVOKE failures

2004-06-10 Thread Fabien COELHO
s wrong with wishing better/full testing of postgresql data access controls and compare the results with what is defined by the norm? -- Fabien Coelho - [EMAIL PROTECTED] ---(end of broadcast)--- TIP 5: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faqs/FAQ.html

Re: [BUGS] BUG #1145: silent REVOKE failures

2004-06-09 Thread Fabien COELHO
uld be kept: - validate grant/revoke (error, warning, success0 wrt sql standard I may be interested in implementing ROLEs someday, and such tests would be welcome just to check that nothing is broken. -- Fabien Coelho - [EMAIL PROTECTED] ---(end of broadcast)

Re: [BUGS] BUG #1161: User permissions are kept, even if user is

2004-06-09 Thread Fabien COELHO
nce would be a big trouble, because create user are not issued that often, and I would not expect them to appear within a large transaction. Anyway I'm planing to hace a look at the real thing first (shared seq). So no worry, and thanks for your question. -- Fabien Coelho - [EMAIL PROTECTED]

Re: [BUGS] BUG #1161: User permissions are kept, even if user is

2004-06-09 Thread Fabien COELHO
t_sysid" user/group could store the next value in the relevant shared relations. This approach would be light weight from the implementation point of view. Not very clean, but that would be easy and would not change much the catalog. -- Fabien Coelho - [EMAIL PROTECTED] --

Re: [BUGS] BUG #1161: User permissions are kept, even if user is

2004-06-08 Thread Fabien COELHO
esysid FROM pg_user; ... nobody | 2147483647 bla | -2147483648 Warf! I think that what is practical is to iterate through the sequence if some user already exists. Collisions are unlikely, so it would not be expensive. So the only problem is to implement system-wide "cluster&qu

Re: [BUGS] BUG #1161: User permissions are kept, even if user is

2004-06-08 Thread Fabien COELHO
thing like select relname from pg_class where relacl similar to '[0-9]+=' would be sufficient. Yep. Not with this very regexpr (think of user "tp01"), but something like that could work, indeed. -- Fabien COELHO _ http://www.cri.ensmp.fr/~coelho _ [EMAIL PROTECTED] CRI-EN

Re: [BUGS] BUG #1161: User permissions are kept, even if user is

2004-06-08 Thread Fabien COELHO
be referenced before posting a bug-report. Any hints? simply follow "bug reporting guidelines" on http://www.postgresql.org/ ? -- Fabien COELHO _ http://www.cri.ensmp.fr/~coelho _ [EMAIL PROTECTED] CRI-ENSMP, 35, rue Saint-Honoré, 77305 Fontainebleau cedex, France phone: (+33|

Re: [BUGS] BUG #1161: User permissions are kept, even if user is

2004-06-08 Thread Fabien COELHO
ss ?). Well, keeping this noise does not look attractive. So I think that the sequence would be better, if possible. Same for groups, BTW. Have a nice day, -- Fabien Coelho - [EMAIL PROTECTED] ---(end of broadcast)--- TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]

Re: [BUGS] BUG #1145: silent REVOKE failures

2004-05-20 Thread Fabien COELHO
s a summary, it is pretty subtle, especially as the standard wording is contrived, and postgres does not do what should be done in a lot of cases. There are also actual "security" bugs. For the TODO, I would suggest something general: - fix grant/revoke wrt SQL standard, val

Re: [BUGS] BUG #1150: grant options not properly checked

2004-05-16 Thread Fabien COELHO
nition of an "identified" privilege (see my previous mail), I finally think that the specs is ok and it just need to be implemented. The bizarre would be more in the way that things are explained in the spec than what is specified. Have a nice day, -- Fabien Coelho - [EMAIL PROTECTED] -

Re: [BUGS] BUG #1149: server includes not installed by default

2004-05-16 Thread Fabien COELHO
r to reinstall if s?he forgot it... -- Fabien Coelho - [EMAIL PROTECTED] ---(end of broadcast)--- TIP 6: Have you searched our list archives? http://archives.postgresql.org

Re: [BUGS] BUG #1150: grant options not properly checked

2004-05-16 Thread Fabien COELHO
ompliance for > privileges otherwise ... I think that if pg really sticks to the spec as I finally understand it with your help, it would not be bad. I mean with both error (empty set in grant or revoke) and warnings (non grantable parts for grant, non granted parts for revoke). T

Re: [BUGS] BUG #1149: server includes not installed by default

2004-05-16 Thread Fabien COELHO
ue about it on -hackers. Ok. Thanks. -- Fabien Coelho - [EMAIL PROTECTED] ---(end of broadcast)--- TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]

Re: [BUGS] BUG #1150: grant options not properly checked

2004-05-11 Thread Fabien COELHO
e access rules directly, so the general rules would apply on an empty set. -- Fabien Coelho - [EMAIL PROTECTED] ---(end of broadcast)--- TIP 7: don't forget to increase your free space map settings

Re: [BUGS] BUG #1150: grant options not properly checked

2004-05-11 Thread Fabien COELHO
d is missing in my version of the standard, because otherwise I cannot really extract a semantics from access rule 1 case a in 12.7. Case b is much more explicit in my version for , you need a "WITH ADMIN OPTION". If my guess is correct and that an access rule is violated, then this

Re: [BUGS] BUG #1150: grant options not properly checked

2004-05-11 Thread Fabien COELHO
not Peter, but I have an answer anyway: the standard says it should be narrowed. ISO/IEC 9075-2:2003 (E) 12.3 ... Syntax Rules 1) ALL PRIVILEGES is equivalent to the specification of all of the privileges on for which the has grantable privilege descriptors. -- Fabien Coelho - [EMAIL PROTECTED] -

Re: [BUGS] BUG #1145: silent REVOKE failures

2004-05-03 Thread Fabien COELHO
`/tmp/': Operation not permitted If you want to call that a "feature", I disagree without further strong argument, and anyway the documentation should be clear about that. Have a nice day, -- Fabien Coelho - [EMAIL PROTECTED] ---(end of broadcast)--- TIP 8: explain analyze is your friend