Re: [HACKERS] Proposal: RETURNING primary_key()

2016-03-07 Thread Ian Barwick
rant.com The linked thread might provide more insights into the issues surrounding this proposal. Regards Ian Barwick -- Ian Barwick http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-hackers mailing list (pgs

[HACKERS] Correction for replication slot creation error message in 9.6

2016-03-30 Thread Ian Barwick
ouple of places, i.e. "wal_level must be set to "replica" or "logical" at server start." Regards Ian Barwick -- Ian Barwick http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services diff --git a/src/backend/r

Re: [HACKERS] psql: tab completion for \l

2016-08-17 Thread Ian Barwick
time to review this! Regards Ian Barwick -- Ian Barwick http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, RemoteDBA, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

Re: [HACKERS] Measuring replay lag

2017-03-15 Thread Ian Barwick
ms seeing a stale value looks plain wrong (and will cause no end of questions from people asking why lag is still showing when their system isn't doing anything). I suggest the documentation of these columns needs to be extended to mention that they will be NULL if no lag was measured recentl

Re: [HACKERS] "RETURNING PRIMARY KEY" syntax extension

2014-06-12 Thread Ian Barwick
side of the scope of this particular patch (which proposes additional server-side syntax intended to make RETURNING * operations more efficient for certain use cases, but which is in itself not a JDBC change). Regards Ian Barwick -- Ian Barwick http://www.2ndQuadrant.com

Re: [HACKERS] "RETURNING PRIMARY KEY" syntax extension

2014-06-12 Thread Ian Barwick
On 14/06/12 20:58, Jochem van Dieten wrote: > On Thu, Jun 12, 2014 at 12:25 PM, Ian Barwick wrote: > > On 14/06/12 18:46, Jochem van Dieten wrote: > > I haven't checked the code, but I am hoping it will help with the > problem > > where a RETURNING * is

Re: [HACKERS] PL/pgSQL support to define multi variables once

2014-06-13 Thread Ian Barwick
text AS $$ > DECLARE > local_a, local_b, local_c text := 'a1'; > BEGIN > return local_a || local_b || local_c; > end; > $$ LANGUAGE plpgsql; Please submit this patch to the current commitfest: https://commitfest.postgresql.org/action/commitfest_view?id=22 Rega

Re: [HACKERS] Doing better at HINTing an appropriate column within errorMissingColumn()

2014-06-16 Thread Ian Barwick
ethods, dealing with different encodings etc. The only place where I've seen Japanese characters widely used is in tutorials, examples etc. However that's only my personal observation for one particular non-Roman language. Regards Ian Barwick -- Ian Barwick http://www.2

Re: [HACKERS] Doing better at HINTing an appropriate column within errorMissingColumn()

2014-06-16 Thread Ian Barwick
On 14/06/17 9:53, Tom Lane wrote: > Michael Paquier writes: >> On Tue, Jun 17, 2014 at 9:30 AM, Ian Barwick wrote: >>> From what I've seen in the wild in Japan, Roman/ASCII characters are >>> widely used for object/attribute names, as generally it's much l

Re: [HACKERS] Doing better at HINTing an appropriate column within errorMissingColumn()

2014-06-16 Thread Ian Barwick
On 14/06/17 11:57, Peter Geoghegan wrote: > On Mon, Jun 16, 2014 at 7:09 PM, Ian Barwick wrote: >> Howver in this particular use case, as long as it doesn't produce false >> positives (I haven't looked at the patch) I don't think it would cause >> any probl

[HACKERS] [REVIEW] psql tab completion for DROP TRIGGER/RULE and ALTER TABLE ... DISABLE/ENABLE

2014-06-17 Thread Ian Barwick
er_a_1916421" "RI_ConstraintTrigger_c_1916329" ts_vector_update This is a bit of an extreme case, but I don't think manually manipulating internal triggers (which can only be done as a superuser) is a common enough operation to justify their inclusion. I suggest adding

Re: [HACKERS] Re: [REVIEW] psql tab completion for DROP TRIGGER/RULE and ALTER TABLE ... DISABLE/ENABLE

2014-06-17 Thread Ian Barwick
On 14/06/18 7:51, Andreas Karlsson wrote: > On 06/17/2014 01:36 PM, Ian Barwick wrote: >> One issue - the table's internal triggers will also be listed. which can >> result in >> something like this: >> >> This is a bit of an extreme case, but I don

[HACKERS] Possible index issue on 9.5 slave

2014-06-18 Thread Ian Barwick
_id | login -+--- 1 | admin (1 row) tgg_current=> \d tgg_user_login_key Index "epp.tgg_user_login_key" Column | Type | Definition +---+---- login | character va

Re: [HACKERS] Possible index issue on 9.5 slave

2014-06-18 Thread Ian Barwick
On 19/06/14 11:58, Peter Geoghegan wrote: On Wed, Jun 18, 2014 at 6:54 PM, Ian Barwick wrote: I've just run into an index issue on 9.5 HEAD on a slave (master and slave both compiled from 66802246e22d51858cd543877fcfddf24e6812f2); details below (I have only found one index on the slave

Re: [HACKERS] Possible index issue on 9.5 slave

2014-06-18 Thread Ian Barwick
On 19/06/14 12:30, Peter Geoghegan wrote: On Wed, Jun 18, 2014 at 8:09 PM, Ian Barwick wrote: Interesting, I'll take a look later. I'm pretty suspicious of incompatibilities that may exist between the two sets of OS collations involved here. We aren't very clear on the exten

Re: [HACKERS] Possible index issue on 9.5 slave

2014-06-18 Thread Ian Barwick
On 19/06/14 12:35, Tom Lane wrote: Peter Geoghegan writes: On Wed, Jun 18, 2014 at 8:09 PM, Ian Barwick wrote: Interesting, I'll take a look later. I'm pretty suspicious of incompatibilities that may exist between the two sets of OS collations involved here. We aren't ve

Re: [HACKERS] replication commands and log_statements

2014-06-19 Thread Ian Barwick
"log_temp_files", "log_disconnections" etc. - It might be an idea to add a cross-reference to this parameter from the "Streaming Replication Protocol" page: http://www.postgresql.org/docs/devel/static/protocol-replication.html Regards Ian Barwick -- Ian Barwick

Re: [HACKERS] tab completion for setting search_path

2014-06-22 Thread Ian Barwick
"; how about having these listed only once "pg_" is entered, i.e. "SET search_path TO pg_"? Regards Ian Barwick -- Ian Barwick http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

Re: [HACKERS] "RETURNING PRIMARY KEY" syntax extension

2014-06-25 Thread Ian Barwick
us of this project/patch. > > Regards, I'll be submitting a revised version of this patch very shortly. Regards Ian Barwick -- Ian Barwick http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-ha

Re: [HACKERS] "RETURNING PRIMARY KEY" syntax extension

2014-06-25 Thread Ian Barwick
On 25/06/14 16:04, Ian Barwick wrote: Hi On 14/06/25 15:13, Rushabh Lathia wrote: Hello All, I assigned my self as reviewer of the patch. I gone through the mail chain discussion and in that question has been raised about the feature and its implementation, so would like to know what is the

Re: [HACKERS] pgaudit - an auditing extension for PostgreSQL

2014-06-26 Thread Ian Barwick
of the others, but still more than nothing. https://www.mysql.com/products/enterprise/audit.html https://mariadb.com/kb/en/about-the-mariadb-audit-plugin/ Regards Ian Barwick -- Ian Barwick http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training &

Re: [HACKERS] "RETURNING PRIMARY KEY" syntax extension

2014-06-26 Thread Ian Barwick
with the expanded primary key columns, or something equally messy). On the other hand, it should be fairly straightforward to handle a list of keywords for expansion (e.g. "RETURNING PRIMARY KEY, UNIQUE KEYS, SEQUENCE VALUES") should the need arise. Regards Ian Barwick -- Ian B

Re: [HACKERS] "RETURNING PRIMARY KEY" syntax extension

2014-07-01 Thread Ian Barwick
ly, that depends on how REPLICA IDENTITY is set. IOW, you can't > assume that will give you the primary key. Damn, fooled by the name. Thanks for the info; I'll rework the patch accordingly. Regards Ian Barwick -- Ian Barwick http://www.2ndQuadrant.com/ Po

Re: [HACKERS] "RETURNING PRIMARY KEY" syntax extension

2014-07-02 Thread Ian Barwick
On 02/07/14 15:16, Ian Barwick wrote: On 14/07/01 23:13, Robert Haas wrote: On Tue, Jul 1, 2014 at 8:00 AM, Rushabh Lathia wrote: .) In map_primary_key_to_list() patch using INDEX_ATTR_BITMAP_IDENTITY_KEY bitmap to get the keycols. In IndexAttrBitmapKind there is also INDEX_ATTR_BITMAP_KEY

Re: [HACKERS] "RETURNING PRIMARY KEY" syntax extension

2014-07-02 Thread Ian Barwick
S" clause: RETURNING PRIMARY KEY [ IF EXISTS ] which would be easy enough to implement. Thoughts? Ian Barwick -- Ian Barwick http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-hackers mailing

Re: [HACKERS] remaining open items

2015-10-25 Thread Ian Barwick
I'm not completely in >>> love with the proposed third column in the table it adds, but otherwise >>> is factually correct as far as I can tell. >> >> I'm not clear whether you are asking for help with this, or ...? > > I enlisted the help of Ian Barwic

Re: [HACKERS] pg_basebackup, tablespace mapping and path canonicalization

2015-04-28 Thread Ian Barwick
On 29/04/15 09:12, Bruce Momjian wrote: > On Fri, Feb 6, 2015 at 08:25:42AM -0500, Robert Haas wrote: >> On Thu, Feb 5, 2015 at 10:21 PM, Ian Barwick wrote: >>> I stumbled on what appears to be inconsistent handling of double slashes >>> in tablespace paths when u

Re: [HACKERS] PL/pgSQL 2

2014-09-01 Thread Ian Barwick
27;s just my subjective opinion (possibly coloured by the particular implementation) and not necessarily a pro/contra argument ;). Regards Ian Barwick -- Ian Barwick http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-ha

Re: [HACKERS] pgaudit - an auditing extension for PostgreSQL

2014-10-08 Thread Ian Barwick
f having time before November > given the other things I'm involved in right now and pgConf.eu happening > in a few weeks. Thanks :) We're updating pgAudit for submission this for the upcoming commitfest, it will be added within the next few days. Regards Ian Barwick -- Ian Barwick

[HACKERS] psql tab completion: \c [ dbname [ username ] ]

2014-11-09 Thread Ian Barwick
t but will happily do so if appropriate. Regards Ian Barwick -- Ian Barwick http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services diff --git a/src/bin/psql/tab-complete.c b/src/bin/psql/tab-complete.c new file mode 100644 index 886188c..56d

Re: [HACKERS] psql tab completion: \c [ dbname [ username ] ]

2014-11-10 Thread Ian Barwick
On 10/11/14 22:20, Robert Haas wrote: On Sun, Nov 9, 2014 at 6:13 PM, Ian Barwick wrote: Attached is a mighty trivial patch to extend psql tab completion for \c / \connect to generate a list of role names, as lack thereof was annoying me recently and I can't see any downside to doing

[HACKERS] Comment header for src/test/regress/regress.c

2014-11-20 Thread Ian Barwick
I thought it might be useful to add a few words at the top of 'src/test/regress/regress.c' to explain what it does and to help differentiate it from 'pg_regress.c' and 'pg_regress_main.c'. Regards Ian Barwick -- Ian Barwick http://ww

Re: [HACKERS] Comment header for src/test/regress/regress.c

2014-11-24 Thread Ian Barwick
On 14/11/21 22:10, Heikki Linnakangas wrote: > On 11/21/2014 06:23 AM, Ian Barwick wrote: >> I thought it might be useful to add a few words at the top >> of 'src/test/regress/regress.c' to explain what it does and >> to help differentiate it from 'pg_

[HACKERS] Description tweak for vacuumdb

2016-01-03 Thread Ian Barwick
vacuum (9.5) Attached patches (for 9.4 and 9.5/HEAD) update the description to make clear that it now does a bit more than just execute a single command. Regards Ian Barwick -- Ian Barwick http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Serv

Re: [HACKERS] why table.name is translated to (name.*)::name?

2010-03-30 Thread Ian Barwick
://archives.postgresql.org/pgsql-general/2010-03/msg00362.php I imagine it has some potential as a 'gotcha', as "name" is hardly an uncommon column name, but it's not an issue which can easily researched... Ian Barwick -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

[HACKERS] 9.0b1: "ERROR: btree index keys must be ordered by attribute"

2010-05-09 Thread Ian Barwick
stgreSQL 9.0beta1 on i686-pc-linux-gnu, compiled by GCC gcc (Ubuntu 4.3.2-1ubuntu12) 4.3.2, 32-bit Ubuntu 8.10 running on a "VIA C7-M" Processor (netbook). Regards Ian Barwick -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

Re: [HACKERS] 9.0b1: "ERROR: btree index keys must be ordered by attribute"

2010-05-09 Thread Ian Barwick
2010/5/9 David Fetter : > On Sun, May 09, 2010 at 05:48:27PM +0900, Ian Barwick wrote: >> Hi >> >> I've just compiled the 9.0 beta1 source tarball and am testing my >> custom application against it (which has been running on PostgreSQL >> since 7.3 or so). &g

Re: [HACKERS] 9.0b1: "ERROR: btree index keys must be ordered by attribute"

2010-05-09 Thread Ian Barwick
Hi 2010/5/10 Tom Lane : > Ian Barwick writes: >> 2010/5/9 David Fetter : >>> A self-contained way to reproduce this, ideally small, would be >>> fantastic :) > > s/fantastic/absolutely required to do anything with this report/ Yes, I appreciate that :) I

Re: [HACKERS] 9.0b1: "ERROR: btree index keys must be ordered by attribute"

2010-05-09 Thread Ian Barwick
2010/5/10 Ian Barwick : > SELECT ov.object_id >    FROM object_version ov >   WHERE ov.object_id = 1 >     AND ov.version ='0 >     AND ov.object_status_id = ( >     SELECT MAX(ov1.object_status_id) >       FROM object_version ov1 >      WHERE ov1.object_id=ov.objec

[HACKERS] monitoring.sgml - clarify length of query text displayed in pg_stat_statements

2016-11-30 Thread Ian Barwick
Hi Small doc patch to clarify how much of the query text is show in pg_stat_statements and a link to the relevant GUC. Regards Ian Barwick -- Ian Barwick http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services diff --git a/doc/src/

[HACKERS] Re: [DOCS] monitoring.sgml - clarify length of query text displayed in pg_stat_statements

2016-12-04 Thread Ian Barwick
Hi On 12/02/2016 11:01 PM, Robert Haas wrote: On Wed, Nov 30, 2016 at 8:45 PM, Ian Barwick wrote: Small doc patch to clarify how much of the query text is show in pg_stat_statements and a link to the relevant GUC. This patch improves the pg_stat_activity documentation, not the

Re: [HACKERS] Correction for replication slot creation error message in 9.6

2016-04-01 Thread Ian Barwick
On 16/04/01 8:15, Michael Paquier wrote: > On Thu, Mar 31, 2016 at 11:18 PM, Alvaro Herrera > wrote: >> Andres Freund wrote: >>> On 2016-03-31 10:15:21 +0900, Ian Barwick wrote: >> >>>> Patch changes the error message to: >>>> >>>&g

Re: [HACKERS] Correction for replication slot creation error message in 9.6

2016-04-05 Thread Ian Barwick
On 05/04/16 10:24, Peter Eisentraut wrote: > On 03/30/2016 09:15 PM, Ian Barwick wrote: >> Currently pg_create_physical_replication_slot() may refer to >> the deprecated wal_level setting "archive": > > I have fixed this in the most direct way, since there was some

[HACKERS] psql: tab completion for \l

2016-04-29 Thread Ian Barwick
ommitfest. Regards Ian Barwick -- Ian Barwick http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, RemoteDBA, Training & Services diff --git a/src/bin/psql/tab-complete.c b/src/bin/psql/tab-complete.c new file mode 100644 index a62ffe6..a87b483 *** a/src/bin/psql

[HACKERS] Docs: CREATE TABLESPACE minor markup fix

2015-02-04 Thread Ian Barwick
Hi A superfluous '/' in an xref tag is producing an unintended '>' in the "Warning" box on this page: http://www.postgresql.org/docs/current/interactive/sql-createtablespace.html Regards Ian Barwick -- Ian Barwick http://www.2ndQuad

Re: [HACKERS] Docs: CREATE TABLESPACE minor markup fix

2015-02-04 Thread Ian Barwick
On 04/02/15 19:02, Fujii Masao wrote: > On Wed, Feb 4, 2015 at 5:27 PM, Ian Barwick wrote: >> Hi >> >> A superfluous '/' in an xref tag is producing an unintended '>' >> in the "Warning" box on this page: >> >> >>

[HACKERS] pg_basebackup, tablespace mapping and path canonicalization

2015-02-05 Thread Ian Barwick
is not canonicalized in the same way it is pretty much everywhere else (including in "CREATE TABLESPACE"). The attached patch adds the missing canonicalization; I can't see any reason not to do this. Thoughts? Regards Ian Barwick -- Ian Barwick http://www.2ndQu

[HACKERS] pg_regress and --dbname option / multiple databases

2014-11-27 Thread Ian Barwick
S only ever uses the first database in the list. Is there a reason for this I'm not seeing? Regards Ian Barwick -- Ian Barwick http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-ha

Re: [HACKERS] pg_regress and --dbname option / multiple databases

2014-11-27 Thread Ian Barwick
On 28/11/14 00:02, Andrew Dunstan wrote: On 11/27/2014 04:12 AM, Ian Barwick wrote: Hi pg_regress provides the command line option "--dbname", which is described in the help output thusly: --dbname=DBuse database DB (default "regression") It does however a

[HACKERS] Testing DDL deparsing support

2014-11-27 Thread Ian Barwick
--schedule=./schedule_ddl_deparse_demo Regards Ian Barwick -- Ian Barwick http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services diff --git a/src/test/regress/expected/.gitignore b/src/test/regress/expected/.gitignore index 93c56c8..2eeaf57

[HACKERS] Typo/spacing fix for "29.1. Reliability"

2014-11-30 Thread Ian Barwick
This fixes a missing space here: http://www.postgresql.org/docs/devel/static/wal-reliability.html (present in 9.3 onwards). Regards Ian Barwick -- Ian Barwick http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services diff --git a/doc

Re: [HACKERS] Testing DDL deparsing support

2014-12-07 Thread Ian Barwick
On 14/12/07 12:43, Bruce Momjian wrote: > On Tue, Dec 2, 2014 at 03:13:07PM -0300, Alvaro Herrera wrote: >> Robert Haas wrote: >>> On Thu, Nov 27, 2014 at 11:43 PM, Ian Barwick wrote: >> >>>> A simple schedule to demonstrate this is available; execute from

[HACKERS] psql tab completion: fix COMMENT ON ... IS IS IS

2014-12-28 Thread Ian Barwick
Hi Currently tab completion for 'COMMENT ON {object} foo IS' will result in the 'IS' being duplicated up to two times; not a world-shattering issue I know, but the fix is trivial and I stumble over it often enough to for it to mildly annoy me. Patch attached. Regards

Re: [HACKERS] psql tab completion: fix COMMENT ON ... IS IS IS

2014-12-31 Thread Ian Barwick
On 15/01/01 1:07, Robert Haas wrote: > On Sun, Dec 28, 2014 at 7:44 PM, Ian Barwick wrote: >> Currently tab completion for 'COMMENT ON {object} foo IS' will result in the >> 'IS' >> being duplicated up to two times; not a world-shattering issue I know, b

Re: [HACKERS] 9.0b1: "ERROR: btree index keys must be ordered by attribute"

2010-06-13 Thread Ian Barwick
in current CVS so was fixed by Tom. Thanks for the update, I can confirm the issue no longer occurs in beta2. Regards Ian Barwick -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

[HACKERS] 8.4b1: Query returning results in different order to 8.3

2009-04-18 Thread Ian Barwick
sumption made for the original query (that the row order returned by the subquery would be carried over to the main part of the query) is incorrect but just happened to work as expected pre-8.4. [*] tested on: - Ubuntu 8.10 running on VIA C7-M - OS X 10.5 running on Intel Core Duo Regards I

Re: [HACKERS] 8.4b1: Query returning results in different order to 8.3

2009-04-18 Thread Ian Barwick
2009/4/19 Tom Lane > Heikki Linnakangas writes: > > Ian Barwick wrote: > >> Note I'm not sure whether this is a bug, or whether the assumption > >> made for the original query (that the row order returned by the > >> subquery would be carri

Re: [HACKERS] Schemas: status report, call for developers

2002-04-30 Thread Ian Barwick
+ public | abc foo| abc foo| xyz bar| xyz (4 rows) How can I restrict the query to the schemas in the current search path, i.e. the schema names returned by SELECT current_schemas() ? Ian Barwick ---(end of broadcast)--- TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]

Re: [HACKERS] Schemas: status report, call for developers

2002-05-01 Thread Ian Barwick
e got time to work on fixing frontend code, or even helping > to work out definitional questions like these (...) Hmm, time for "ask not what your database can do for you but what you can do for your database". I'm willing to put my keyboard where my mouth is and take on psql once any outstanding questions are cleared up, if noone better qualified than me comes forward and provided someone takes a critical look at anything I do. Yours Ian Barwick ---(end of broadcast)--- TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]

Re: [HACKERS] Schemas: status report, call for developers

2002-05-02 Thread Ian Barwick
%%' ESCAPE '$' AND schema_test->nspname || '.' || relname LIKE 'f%.b%'; schema | object | type | access ++--+ foo| bar| r| foo2 | bar| r| (2 rows) i.e. user "joe" can see which objects e

Re: [HACKERS] Set Returning Functions (SRF) - request for patch review and comment

2002-05-11 Thread Ian Barwick
On Monday 06 May 2002 18:51, Joe Conway wrote: (...) > Request for help: > - > So far I've tested with SQL and C functions. (...) Can you post an example of a function in C? (I'm trying out your patch from Friday). Thanks, Ian Barwick ---

Re: [HACKERS] Set Returning Functions (SRF) - request for patch review

2002-05-12 Thread Ian Barwick
> > See contrib/dblink. The version in cvs HEAD has two that return sets -- > dblink() which returns an int, and dblink_get_pkey() which returns text. Thanks, now I can see what I was doing wrong Yours Ian Barwick ---(end of broadcast)--

[HACKERS] Q: unexpected result from SRF in SQL

2002-05-25 Thread Ian Barwick
but also this: func_test=# select bar(1); bar --- 139059784 (1 row) What is this number? It often varies from query to query. Possibly an error-in-disguise because of something to do with the calling context? Just curious ;-) Ian Barwick ---(end of b

Re: [HACKERS] Q: unexpected result from SRF in SQL

2002-05-26 Thread Ian Barwick
"SELECT bar(1)". The reason why I posted the question is that I had defined a function that should have worked, but kept giving me back strange numbers, so I spent a whole five minutes trying to debug the function before I realised I was calling it in the wrong way (doh). An error here w

Re: [HACKERS] Schemas: status report, call for developers

2002-05-26 Thread Ian Barwick
On Wednesday 01 May 2002 06:38, Tom Lane wrote: > Ian Barwick <[EMAIL PROTECTED]> writes: > > How can I restrict the query to the schemas in the > > current search path, i.e. the schema names returned > > by SELECT current_schemas() ? > > Well, this is the issue o

[HACKERS] No bison and NAMEDATALEN > 31: initdb failure?

2002-07-29 Thread Ian Barwick
#x27;m looking for, so I'm not sure if this is intended behaviour. Questions: - Does src/include/postgres_ext.h count as a parser definition file? - If not shouldn't the above warning include something like "And don't even think about changing NAMEDATALEN"? Apologies

Re: [HACKERS] No bison and NAMEDATALEN > 31: initdb failure?

2002-07-31 Thread Ian Barwick
On Tuesday 30 July 2002 00:23, Tom Lane wrote: > Ian Barwick <[EMAIL PROTECTED]> writes: > > - Does src/include/postgres_ext.h count as a parser definition file? > > No, it doesn't. Your experience sounds like you may have neglected to > do a full rebuild after alter

Re: [HACKERS] Request for supported platforms

2002-10-29 Thread Ian Barwick
gression tests is: | | | null | | | 0 | zero | Ian Barwick [EMAIL PROTECTED] ---(end of broadcast)--- TIP 5: Have you checked our extensive FAQ? http://www.postgresql.org/users-lounge/docs/faq.html

Re: [HACKERS] Please help

2002-10-21 Thread Ian Barwick
no idea whether it's relevant, but maybe you have a problem with semaphores? See: http://www.ca.postgresql.org/docs/faq-english.html#3.4 (A lack of available semaphores can also produce the message "No space left on device.") Sorry I can't help any further. Ian Barwick [EMA

Re: [HACKERS] Request for supported platforms

2002-10-27 Thread Ian Barwick
e the regression.diffs file is here: http://home.akademie.de/~IBarwick/IRIX_65_regression.diffs Otherwise no apparent problems and the server started fine. Ian Barwick [EMAIL PROTECTED] ---(end of broadcast)--- TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]

Re: [HACKERS] Request for supported platforms

2002-10-28 Thread Ian Barwick
oin regression test to add ORDER BY in the > queries Irix differed. Ian, would you retest the CVS version of > PostgreSQL to see if all the regression tests pass now? For confirmation: IIRC CVS now requires the latest Bison (1.75)? (The Irix machine has 1.35). Ian Barwick [EM

[HACKERS] Boolean casting in 7.3 -> changed?

2002-11-26 Thread Ian Barwick
cause the former query works in 7.1.3 and 7.2.1, but I haven't seen any mention of a change in 7.3 (at least not in the release notes). Apologies if this has been discussed to death previously, but it might be worth mentioning somewhere as a "gotcha".

Re: [HACKERS] Boolean casting in 7.3 -> changed?

2002-11-26 Thread Ian Barwick
On Wednesday 27 November 2002 06:23, Tom Lane wrote: (B> Ian Barwick <[EMAIL PROTECTED]> writes: (B> > in 7.3 the following no longer works: (B> > template1=> select 0::bool; (B> > ERROR: Cannot cast type integer to boolean (B> (B> Note that

Re: [HACKERS] Boolean casting in 7.3 -> changed?

2002-11-28 Thread Ian Barwick
On Thursday 28 November 2002 00:18, Tom Lane wrote: > Peter Eisentraut <[EMAIL PROTECTED]> writes: > > Ian Barwick writes: > >> "Casting integers to boolean (for example, 0::bool) is no longer > >> allowed, use '0'::bool instead". > &g

[HACKERS] Q: "unknown expression type 108" ?

2002-12-05 Thread Ian Barwick
work in 7.1.3 with no apparent problems. Question: what does "unknown expression type 108" mean and why should it suddenly occur in 7.3? A bit of Googling reveals the same message occurs when using subselects in constraints, but that doesn't seem related to this case. Ian Barwick [

Re: [HACKERS] Q: "unknown expression type 108" ?

2002-12-06 Thread Ian Barwick
On Friday 06 December 2002 20:50, Tom Lane wrote: (B> Ian Barwick <[EMAIL PROTECTED]> writes: (B> > ERROR: ExecEvalExpr: unknown expression type 108 (B> (B> This is fixed as of yesterday --- see thread on (I think) pgsql-general (B> for the patch. (B (BMany thanks

Re: [HACKERS] [INTERFACES] Patch for DBD::Pg pg_relcheck problem

2002-12-10 Thread Ian Barwick
(B(crossposting to hackers) (B (BOn Tuesday 10 December 2002 00:47, Tom Lane wrote: (B> In the next protocol version update (hopefully 7.4) I would like to see (B> the basic version string (eg, "7.3.1" or "7.4devel") delivered to the (B> client automatically during connection startup and the

Re: [HACKERS] [INTERFACES] Patch for DBD::Pg pg_relcheck problem

2002-12-10 Thread Ian Barwick
(no followup to [EMAIL PROTECTED], getting a little OT there) (B (BOn Tuesday 10 December 2002 16:54, Lee Kindness wrote: (B> Ian Barwick writes: (B> > Something along the lines of (B> > char *PQversion(const PGconn *conn) ? (B> (B> Probably: (B> (B> int P

[HACKERS] 7.3.1 regression: geometry failed on FreeBSD

2002-12-24 Thread Ian Barwick
Hi building on FreeBSD 4.7-RELEASE; diffs attached. Seems to be a difference between 0 and -0. Is this anything to worry about? Ian Barwick [EMAIL PROTECTED] regression.diffs.gz Description: GNU Zip compressed data ---(end of broadcast)--- TIP

Re: [HACKERS] psql and readline

2003-01-08 Thread Ian Barwick
nt... Not that I know of, but you can use \e to edit the query in your favourite editor. Ian Barwick [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: [HACKERS] psql and readline

2003-01-08 Thread Ian Barwick
On Wednesday 08 January 2003 13:02, Alexander M. Pravking wrote: > On Wed, Jan 08, 2003 at 10:53:51AM +0100, Ian Barwick wrote: > > On Wednesday 08 January 2003 07:55, Christopher Kings-Lynne wrote: > > > Hi, > > > > > > Is there any way of making the

Re: [HACKERS] A modest proposal for a FAQ addition

2003-01-12 Thread Ian Barwick
en mentioned later. I also added a specific mention of > the trailing spaces issue. Patch attached. Err, from the patch: "CHAR(n) stores trailing spaces, while VARCHAR(n) trims them." Surely this should read something like: "CHAR(n) automatically pads st

Re: [HACKERS] A modest proposal for a FAQ addition

2003-01-12 Thread Ian Barwick
ied column length. This makes some operations, particularly comparisions, appear to return unexpected results. For example, if you insert the string 'hello' (5 characters) into a column defined as CHAR(8) it will become 'hello ' (8 characters) and simple comparisions with the orig

Re: [mail] Re: [HACKERS] Windows Build System

2003-01-31 Thread Ian Barwick
p and start the server in the same way as for the binary Windows distribution. *Note Windows prepare environment::. --QUOTE END-- Ian Barwick [EMAIL PROTECTED] ---(end of broadcast)--- TIP 6: Have you searched our list archives? http://archives.postgresql.org

Re: [HACKERS] Windows Build System - My final thoughts

2003-02-01 Thread Ian Barwick
ostgreSQL, > > and it is _threaded_: > > > > http://osb.sra.co.jp/PowerGres/ > > Is there an English translation of the site so one who doesn't speak or > write Japanese can try it out? Can't see one, but here is a summarized translation of the relevant parts as

[HACKERS] Todo "claim": psql tab completion on schema names

2003-02-15 Thread Ian Barwick
kwards compatibilty to pre 7.3 clients? - pg_catalog.pg_table_is_visible() works on non-table relations as well, right? Ian Barwick [EMAIL PROTECTED] ---(end of broadcast)--- TIP 2: you can get off all lists at once with the unregister command (send &qu

Re: [HACKERS] Todo "claim": psql tab completion on schema names

2003-02-15 Thread Ian Barwick
...what I meant is that after entering \d, TAB will produce a list of tables, but \di does not produce a list of indexes, same for \dv etc. I see no particular reason why this is so and can provide patches if relevant. Ian Barwick [EMAIL PROTECTED] ---(end of broadcast

Re: [HACKERS] psql and output from \?

2002-03-14 Thread Ian Barwick
> > Ian, do you have another version of this patch ready? Patch attached (diff against CVS, replacing previous patch). Ian Barwick Index: help.c === RCS file: /projects/cvsroot/pgsql/src/bin/psql/help.c,v retrieving revision 1.

[HACKERS] Q: pg_catalog views, OIDs and search_path

2003-02-17 Thread Ian Barwick
this is how \d currently behaves and IMHO is intuitive. \d should of course operate on schema names too, to enable completion of relation names not in the search path; tentative patch will follow. Ian Barwick [EMAIL PROTECTED] ---(end of broadcast)---

[HACKERS] Linking to "current" docs

2003-02-23 Thread Ian Barwick
do this (though I have no idea of what would be involved ;-). Ian Barwick [EMAIL PROTECTED] ---(end of broadcast)--- TIP 4: Don't 'kill -9' the postmaster

Re: [HACKERS] Linking to "current" docs

2003-02-24 Thread Ian Barwick
On Sunday 23 February 2003 20:52, Dave Page wrote: > > -Original Message- > > From: Ian Barwick [mailto:[EMAIL PROTECTED] > > > > Would it be possible to modify the new docs to provide > > similar functionality? E.g. something like > > http://www.

Re: [HACKERS] SOLUTION: Insert a Euro symbol as UTF-8 from a latin1 charset.

2003-06-13 Thread Ian Barwick
urry. This section is referring to substitutions in psql's own meta commands, not SQL statements, e.g. this: \echo '\0xe2\0x82\0xac' will display the Euro sign (assuming your terminal can print it). Ian Barwick [EMAIL PROTECTED] ---(end of broadcast)

Re: [HACKERS] SOLUTION: Insert a Euro symbol as UTF-8 from a latin1 charset.

2003-06-16 Thread Ian Barwick
urry. This section is referring to substitutions in psql's own meta commands, not SQL statements, e.g. this: \echo '\0xe2\0x82\0xac' will display the Euro sign (assuming your terminal can print it). Ian Barwick [EMAIL PROTECTED] ---(end of broadcast)--- TIP 4: Don't 'kill -9' the postmaster

Re: [GENERAL] [HACKERS] [pgsql-advocacy] Need concrete "Why Postgres not MySQL" bullet list

2003-08-21 Thread Ian Barwick
gh as I have little experience and virtually no docs I might be missing something). Ian Barwick [EMAIL PROTECTED] ---(end of broadcast)--- TIP 7: don't forget to increase your free space map settings

Re: [HACKERS] [GENERAL] [pgsql-advocacy] Need concrete "Why Postgres not MySQL" bullet list

2003-08-21 Thread Ian Barwick
On Thursday 21 August 2003 11:15, Shridhar Daithankar wrote: > On 21 Aug 2003 at 0:22, Ian Barwick wrote: > > * DDL > > - Data definition language (table creation statements etc.) in MySQL > > are not transaction based and cannot be rolled back. > > Just wonderin

Re: [HACKERS] perl namespace for postgres specific modules?

2006-08-11 Thread Ian Barwick
MySQL, Msql and Oracle, has "Postgres" rather than "PostgreSQL" (though there are only two modules in it, one of which dates from 1998, see http://cpan.org/modules/by-module/Postgres/ ). Ian Barwick ---(end of broadcast)--- T

[HACKERS] Unexpected subquery behaviour

2004-07-26 Thread Ian Barwick
0) (4 rows) test=> SELECT id FROM bar; ERROR: column "id" does not exist test=> SELECT * FROM foo WHERE id IN (SELECT bar.id FROM bar); ERROR: column bar.id does not exist test=> ALTER TABLE bar RENAME foo_id TO id; ALTER TABLE test=> SELECT * FROM foo WHERE id IN (SELECT

Re: [HACKERS] Unexpected subquery behaviour

2004-07-26 Thread Ian Barwick
On Tue, 27 Jul 2004 01:33:44 +0200, Andreas Joseph Krogh <[EMAIL PROTECTED]> wrote: > On Tuesday 27 July 2004 01:15, Ian Barwick wrote: > > Apologies if this has been covered previously. > > > > Given a statement like this: > > SELECT * FROM foo WHERE id IN

Re: [HACKERS] Unexpected subquery behaviour

2004-07-26 Thread Ian Barwick
On Mon, 26 Jul 2004 16:32:33 -0700 (PDT), Stephan Szabo <[EMAIL PROTECTED]> wrote: > On Tue, 27 Jul 2004, Ian Barwick wrote: > > > Apologies if this has been covered previously. > > > > Given a statement like this: > > SELECT * FROM foo WHERE id IN (SELECT i

Re: [HACKERS] [BUGS] Autocomplete on Postgres7.4beta5 not working?

2003-10-28 Thread Ian Barwick
in a schema of their own so explicitly addressing them would work equally well too). > then he'd not have a > problem with the availability of tab completion for system catalogs. I'm sure I can live with that (one more character), at least until I finish the br

  1   2   >