Re: [GENERAL] Alter view with psql command line

2017-02-10 Thread David Fetter
functions. > > > > In 9.6: > > > > That's why in 9.1 I didn't find that command... You can use the 9.6 client without problems on 9.1, well, apart from the fact that 9.1 is already past its end of life. Best, David. -- David Fetter http://fetter.org/ Phone: +1 415

Re: [GENERAL] Pg & Tcl - is it dying out?

2013-01-31 Thread David Fetter
s there something constructive you might have been asking about that you forgot to include in this email? If so, what was it? Cheers, David. -- David Fetter http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: david.fet...@gmail.com iCal: web

Re: MODERATOR WARNING Re: [GENERAL] Exception Handling in C-Language Functions?

2012-12-03 Thread David Fetter
C-Language-Functions-tp5734656.html > > Sent from the PostgreSQL - general mailing list archive at Nabble.com. > > > > > > -- > > Sent via pgsql-general mailing list (pgsql-general@postgresql.org) > > To make changes to your subscription: > > http://www

Re: [GENERAL] Moving from Java 1.5 to Java 1.6

2012-10-04 Thread David Fetter
b To restore on the 9.2 machine: pg_restore -C mydb.dump Hope this helps. Cheers, David. -- David Fetter http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: david.fet...@gmail.com iCal: webcal://www.tripit.com/feed/ical/people/david74/tripit.ics Rem

[GENERAL] Test, please ignore.

2012-07-01 Thread David Fetter
$subject! -- David Fetter http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: david.fet...@gmail.com iCal: webcal://www.tripit.com/feed/ical/people/david74/tripit.ics Remember to vote! Consider donating to Postgres: http://www.postgresql.org

Re: [GENERAL] Chaining inserts ... This would be cool

2012-04-23 Thread David Fetter
uestion I never asked (never bothered to, really) > was: Is it really any better than simply doing the first insert and > retrieving the ID in my application? :) One crucial difference is the number of round trips to the database. Cheers, David. -- David Fetter http://fetter.org/ Phone: +1 415

Re: [GENERAL] exclusive OR possible within a where clause?

2011-10-14 Thread David Fetter
> regards, tom lane Factoring in NULLable columns, that's: (x IS NOT DISTINCT FROM y) <> (a IS NOT DISTINCT FROM b) Cheers, David. -- David Fetter http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: david.

Re: [GENERAL] [Solved] Generic logging system for pre-hstore using plperl triggers

2011-09-28 Thread David Fetter
cause in my case, operations over tuples are > done very lightly (one or two in the same sentence at a time). So, for > a case as such, rules end up beeing more expensive than triggers > (right?). There's an even better reason not to use rules: they're going away in a not too

Re: [GENERAL] live metadata changes v8.3.4

2011-09-28 Thread David Fetter
whos processes got > killed. You have the choice between taking those users offline and not doing the change. > V8.3.4 on linux. Upgrade to 8.3.16 immediately, if not sooner. Oh, and start planning the 9.1 migration, too. December of 2012 is closer than you think. :) Cheers, David.

Re: [GENERAL] [pgadmin-support] Help for Migration

2011-09-06 Thread David Fetter
ar in many ways to stored procedures, have a fundamental difference: they can't control transactions. Any stored procedures that have a COMMIT or ROLLBACK in them will have to be re-architected in a fundamental way. Cheers, David. -- David Fetter http://fetter.org/ Phone: +1 415 235 3778 AI

Re: [GENERAL] Help needed with PostgreSQL clustering/switching from MySQL

2011-06-20 Thread David Fetter
ise as a result of email transmission. If > verification is required please request a hard copy version. In future, please to elide these "disclaimers." The serve no legal or practical purpose, but they do give people they annoy a convenient excuse not to reply. Cheers, David. --

Re: [GENERAL] unnest with generate_subscripts and same array

2011-05-26 Thread David Fetter
nt? In all the > testing I've done it's worked, but I don't know if I was just lucky :) That would be more of the SQL standard UNNEST, with the WITH ORDINALITY clause. We don't have it yet :/ Cheers, David. -- David Fetter http://fetter.org/ Phone: +1 415 235 3778

Re: [GENERAL] [HACKERS] PostgreSQL Core Team

2011-04-27 Thread David Fetter
e > serves as President of the Board of PostgreSQL Europe. > > Regards, Dave. > > -- > Dave Page > PostgreSQL Core Team > http://www.postgresql.org/ > > -- > Sent via pgsql-hackers mailing list (pgsql-hack...@postgresql.org) > To make changes to your subscription:

Re: [GENERAL] How to realize ROW_NUMBER() in 8.3?

2011-04-21 Thread David Fetter
upgrade to a modern version of PostgreSQL. While you will of course need to do tests with your applications, 9.0 has no significant backward-incompatibility with 8.3. Cheers, David. -- David Fetter http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMP

Re: [GENERAL] postgres conferences missing videos?

2011-03-21 Thread David Fetter
On Mon, Mar 21, 2011 at 11:55:20PM +0100, Aljoša Mohorović wrote: > On Mon, Mar 21, 2011 at 9:45 PM, David Fetter wrote: > > Who proposes, volunteers!  How are you going to help? > > being on a different continent and unable to attend doesn't actually > enable me to do s

Re: [GENERAL] postgres conferences missing videos?

2011-03-21 Thread David Fetter
the shoulders of the conference organizers, who are > > already working hard just to pull off the live show. > > never said that it's not so just that i'm surprised/disappointed that > it's so low priority. Who proposes, volunteers! How are you going to help?

Re: [GENERAL] Table inheritance foreign key problem

2010-12-22 Thread David Fetter
rg/dfetter/index.php?/archives/59-Partitioning-Glances.html Cheers, David (hoping PostgreSQL will be able to infer how to automate this some day). -- David Fetter http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: david.fet...@gmail.com iCal: we

Re: [GENERAL] What is the name pseudo column

2010-12-15 Thread David Fetter
On Wed, Dec 15, 2010 at 03:43:45PM -0800, Adrian Klaver wrote: > On Wednesday 15 December 2010 1:27:19 pm David Fetter wrote: > > On Wed, Dec 15, 2010 at 01:50:54PM -0600, Jack Christensen wrote: > > > I was just surprised when accidentally selecting a non-existent name > &g

Re: [GENERAL] What is the name pseudo column

2010-12-15 Thread David Fetter
ot; habit of using the argument.function notation, so you called the "name" function, i.e. the one that casts to name, on the entire row from your accounts table. Cheers, David. -- David Fetter http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfe

Re: [GENERAL] Pgadmin for Fedora 14?

2010-11-29 Thread David Fetter
f PostgreSQL are 9.0, 8.4, 8.3, etc., not 9 and 8 :) Cheers, David. -- David Fetter http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: david.fet...@gmail.com iCal: webcal://www.tripit.com/feed/ical/people/david74/tripit.ics Remember to vo

Re: Fwd: [GENERAL] [pgsql-www] Forums at postgresql.com.au

2010-11-21 Thread David Fetter
l address will be plastered all over the internet, guaranteed to > be picked up by spiders, make sure you have a good anti-spam." If you imagine that not signing up for a mailing list in any way alleviates this need, I have a bridge to sell you. It connects Manhattan with Brooklyn. Cheers, Davi

Re: [GENERAL] Re: Storing old and new tuple values after an UPDATE, INSERT or DELETE

2010-11-17 Thread David Fetter
esting on things that work for the vast majority of people. :) Cheers, David. -- David Fetter http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: david.fet...@gmail.com iCal: webcal://www.tripit.com/feed/ical/people/david74/tripit.ics Re

Re: [GENERAL] Re: Storing old and new tuple values after an UPDATE, INSERT or DELETE

2010-11-17 Thread David Fetter
o production, or a solid evidence that you need to find another gig. Cheers, David. -- David Fetter http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: david.fet...@gmail.com iCal: webcal://www.tripit.com/feed/ical/people/david74/tripit.ics

Re: [GENERAL] Alter table to "on update cascade"

2010-11-17 Thread David Fetter
how to do this or even whether you can do this. You can do it like this: BEGIN; ALTER TABLE foo DROP CONSTRAINT your_constraint; ALTER TABLE foo ADD FOREIGN KEY ...; COMMIT; Cheers, David. -- David Fetter http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype:

Re: [GENERAL] good settings for DB parameters such as shared_buffers, checkpoint_segment in Postrgesql 9

2010-11-11 Thread David Fetter
00MB > max_prepared_transactions = 100 # guideline: same number as max_connections This should be either 0 (no 2PC) or the bounded from below by max_connections. Cheers, David. -- David Fetter http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMP

Re: [GENERAL] PostgreSQL 8.2.3

2010-11-10 Thread David Fetter
you need to do is start that process and work to make it shorter for PostgreSQL upgrades, or failing that, find something to do with your life, because processes like that are a bright red warning sign of the kind of dysfunction that tanks organizations, no matter how big or important they ar

Re: [GENERAL] what can depend on index

2010-10-26 Thread David Fetter
On Tue, Oct 26, 2010 at 10:13:04AM +0200, Szymon Guz wrote: > Hi, > today I noticed that in the documentation there is DROP INDEX > CASCADE. I've got one question: what is that for? What can depend > on index? A foreign key can, if the index is unique. Cheers, David. -- D

Re: [GENERAL] NoSQL -vs- SQL

2010-10-19 Thread David Fetter
t; second-degree derivation, which rather diminishes its power. > > It gets confused as to who's the questioner, which yanks some sense out > of it. At the start, the MySQL aficionado is the speaker, taking > questions, but at the end, somehow the Postgres guy ends up th

Re: [GENERAL] Problem with initdb: creates database which do not exists

2010-10-19 Thread David Fetter
TP user :) We've all been there. Cheers, David. -- David Fetter http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: david.fet...@gmail.com iCal: webcal://www.tripit.com/feed/ical/people/david74/tripit.ics Remember to vote! Cons

Re: [GENERAL] What was new in 8.4 & 8.3?

2010-10-11 Thread David Fetter
ures in > each version here: http://wiki.postgresql.org/wiki/Version_History > > Haven't updated that yet to include anything but the one big 9.0 > article you were referring to so far. Should we have a 9.1 one? There's already been at least one large, new feature, namely INS

Re: [GENERAL] Postgres won't start after setting ssl=on

2010-10-11 Thread David Fetter
On Sun, Oct 10, 2010 at 12:08:13AM -0700, Mike Christensen wrote: > While I do appreciate the vote of confidence, rest assured you will > never see a post from me that starts with "So I've been hacking the pg > code and..." Actually, we get *plenty* of those. Cheers,

[GENERAL] Commitfest: The Good, The Bad, and the Ugly

2010-09-28 Thread David Fetter
art of step 7. If you think that getting all outstanding patches through step 5 is not doable, let me know. If you think it is, this is your chance to help make it happen. Write back either way. Cheers, David. [1] If you do have them, help out with step 6, too. [2] If you are one, help out with st

Re: [GENERAL] Implicit CAST is not working in Postgresql 8.4

2010-09-28 Thread David Fetter
and clean it up. I can't really recommend that you put in workarounds, as they don't actually fix the bugs you've found. Cheers, David. -- David Fetter http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: david.fet...@gmail.c

Re: [GENERAL] Exclusion constraint issue

2010-09-26 Thread David Fetter
On Sun, Sep 26, 2010 at 10:15:00AM -0400, Tom Lane wrote: > David Fetter writes: > > On Fri, Sep 24, 2010 at 05:22:15PM -0400, Tom Lane wrote: > >> period() might be immutable, but those casts from date to > >> timestamptz are not, because they depend on the TimeZone

Re: [GENERAL] Exclusion constraint issue

2010-09-26 Thread David Fetter
it be to point out the first expression found to be mutable? All of them? Cheers, David. -- David Fetter http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: david.fet...@gmail.com iCal: webcal://www.tripit.com/feed/ical/people/david74/tripit

Re: [GENERAL] How to dump only the the data without schema?

2010-09-26 Thread David Fetter
is for? Cheers, David. -- David Fetter http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: david.fet...@gmail.com iCal: webcal://www.tripit.com/feed/ical/people/david74/tripit.ics Remember to vote! Consider donating to Postgres: http://www.postg

Re: [GENERAL] value

2010-09-15 Thread David Fetter
> my_table_history <http://postgresql.pastebin.com/cGm617Cp> > [etc.] > Does anybody have any idea what is going on? Yes. You're using RULEs where TRIGGERs would do. Change to TRIGGERs. Cheers, David. -- David Fetter http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfe

Re: [GENERAL] workaround steps for autovaccum problem

2010-09-14 Thread David Fetter
On Wed, Sep 15, 2010 at 05:30:51AM +0530, tamanna madaan wrote: > I know upgrading postgres will resolve the problem permanently . > But I wanted some workaround for now before I actually upgrade. I want a pony, but I'm not getting one. Upgrade PostgreSQL :) Cheers, David. -- D

Re: [GENERAL] workaround steps for autovaccum problem

2010-09-14 Thread David Fetter
On Wed, Sep 15, 2010 at 02:39:26AM +0530, tamanna madaan wrote: > Hi All > > > > I am using postgres-8.1.2. I am getting the following error while > autovacuum. Please upgrade your software to PostgreSQL 8.1.21 and try again. Cheers, David. -- David Fetter http://fetter.

Re: [GENERAL] regexp on null

2010-09-10 Thread David Fetter
ke that. I'm aware that it's common in one of those Oracle properties, but it needs to stay confined there. Cheers, David. -- David Fetter http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: david.fet...@gmail.com iCal: webcal://www.tripi

Re: [GENERAL] Frustration with \copy

2010-09-10 Thread David Fetter
ase_Support_Policy > Should I just INSERT? Nope. Cheers, David. -- David Fetter http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: david.fet...@gmail.com iCal: webcal://www.tripit.com/feed/ical/people/david74/tripit.ics Remember to vote!

Re: [GENERAL] Post Install / Secure PostgreSQL

2010-09-10 Thread David Fetter
the BSDs) user is the database superuser. Once it's installed, try: su - postgres psql -l Happy PostgreSQLing :) Cheers, David. -- David Fetter http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: david.fet...@gmail.com iCal:

Re: [GENERAL] error while autovacuuming

2010-09-09 Thread David Fetter
On Fri, Sep 10, 2010 at 02:35:29AM +0530, tamanna madaan wrote: > Hi David > > You mean to say , change the binary to postgres-8.1.21 and then restart > postgres . that's it ?? please confirm.. Yes. :) Cheers, David. -- David Fetter http://fetter.org/ Phone: +1 415 235 3778

Re: [GENERAL] error while autovacuuming

2010-09-09 Thread David Fetter
ich is for autovacuum error. Your idea is silly. Change the binary, restart, and have done. Cheers, David. -- David Fetter http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: david.fet...@gmail.com iCal: webcal://www.tripit.com/feed/ical/peop

Re: [GENERAL] Table update problem works on MySQL but not Postgres

2010-08-31 Thread David Fetter
27;s UPDATE are at: http://www.postgresql.org/docs/current/static/sql-update.html Cheers, David. -- David Fetter http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: david.fet...@gmail.com iCal: webcal://www.tripit.com/feed/ical/people/david74/trip

Re: [GENERAL] Restore referencial integrity

2010-08-30 Thread David Fetter
ssed in item 1 run an index scan on posicoes to check if > the key > is in the table posicoes > 3) If the parent found is not found on posicoes then remove the row from > posicoes_controles > > Am I thinking correctly? I believe so. Cheers, David (whose pt_BR is pretty w34k) -

Re: [GENERAL] Restore referencial integrity

2010-08-30 Thread David Fetter
oes_controles WHERE NOT EXISTS ( SELECT 1 FROM pesicoes WHERE pesicoes.protocolo = pescioes_controles.protocolo ); ALTER TABLE posicoes_controles add CONSTRAINT protocolo FOREIGN KEY (protocolo) REFERENCES posicoes (protocolo) MATCH SIMPLE ON UPDATE NO ACTION ON DELETE CASCADE;

Re: [GENERAL] select from pipe-delimited field

2010-08-23 Thread David Fetter
uot; with any > of the values of the synonyms fields. Try the LIKE function. http://www.postgresql.org/docs/current/static/functions-matching.html#FUNCTIONS-LIKE Cheers, David. -- David Fetter http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMP

Re: [GENERAL] deadlock

2010-08-11 Thread David Fetter
> lead to this sort of deadlock? DDL is a "don't do it at peak load" event. More realistically, it's more like a "down time" event. Maybe when we have "real" partitioning... Cheers, David. -- David Fetter http://fetter.org/ Phone: +1 415 235 3778

Re: [GENERAL] Using AND in query

2010-08-08 Thread David Fetter
On Sun, Aug 08, 2010 at 12:33:40PM -0700, David Fetter wrote: > On Sun, Aug 08, 2010 at 01:55:19AM -0700, John R Pierce wrote: > > >The condition > > > > > > and table.item = 'laptop' and table.item = 'Desktop' > > > > > >sa

Re: [GENERAL] Using AND in query

2010-08-08 Thread David Fetter
... AND (table.item = 'laptop' OR table.item='Desktop') ... OR doesn't account for duplicates. Two laptops on the same date would cause a false positive. Cheers, David. -- David Fetter http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter S

Re: [GENERAL] Using AND in query

2010-08-07 Thread David Fetter
E SQL AS $$ SELECT ARRAY(SELECT * FROM unnest($1) ORDER BY 1); $$; The "=" query would look like this: SELECT TID, "Date" FROM "table" GROUP BY TID, "Date" HAVING array_sort(ARRAY['Laptop','Desktop']) = array_sort(array_agg(item)); Cheers

Re: [GENERAL] Could you teach me, How can we specify password when using psql....

2010-08-05 Thread David Fetter
Password for user hsnoh: > > Thanks.. Overall, it's better to use a .pgpass (pgpass.conf on Windows) http://www.postgresql.org/docs/current/static/libpq-pgpass.html It's also possible, but not recommended, to set an environment variable. Cheers, David. -- David Fetter http:/

Re: [GENERAL] Postgresql database procedures?

2010-08-04 Thread David Fetter
ang.html As The Fine Manual is very extensive, telling people just to Read it from some arbitrary point is just barely more helpful than not specifying one, i.e. not terribly. Perhaps asking a few more questions would be. :) Cheers, David. -- David Fetter http://fetter.org/ Phone: +1 415 235

Re: [GENERAL] Nodes and trees...

2010-08-03 Thread David Fetter
es table, you'd do something like this: WITH descendants AS ( SELECT head FROM edges WHERE tail=1 /* the root node */ UNION SELECT e.head FROM edges e JOIN descendants d ON (e.tail = d.head) ) SELECT * FROM descendants; You might want to index edges.tail and edges.head. Cheers, David.

Re: [GENERAL] order in which rules are executed

2010-07-28 Thread David Fetter
re they executed in some random order? They're executed in alphabetical order, to the extent that that is deterministic, which is not very, and that's not even the wackiest thing about them. If you have any alternative of any nature, do NOT use rules. Cheers, David. -- David Fetter ht

Re: [GENERAL] sql dump

2010-07-26 Thread David Fetter
t having to SELECT * on each table. > > Thanks in advance! > Scott > > -- > Sent via pgsql-general mailing list (pgsql-general@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-general -- David Fetter http://fet

Re: [GENERAL] cache lookup failed for function 19119

2010-07-17 Thread David Fetter
w.postgresql.org/docs/8.1/static/release.html. You might also want to note that 8.1's end of life is in November, so start planning the upgrade to 9.0 right now. You will likely need to clean up some client code in order for that to work, as modern versions of PostgreSQL don't allow some

Re: [GENERAL] Planner features, discussion

2010-07-14 Thread David Fetter
ing constants and > single-evaluation variables like the above would be really, really > nice, and would avoid some ugly SQL mangling and any need for > compliated planner features that try to match up and combine > subquery trees. I'm all for extending WITH, as are some ot

Re: [GENERAL] Need help doing a CSV import

2010-07-14 Thread David Fetter
ol of charsets, > date formats, EOL conventions & Co. and do not have to won- > der whether this and that file is in this and that stage of > the conversion process, the disadvantage is obviously that > you lose any speed benefit of bulk "COPY". You can do your transfor

Re: [GENERAL] [pgsql-advocacy] Anyone in Madison?

2010-07-07 Thread David Fetter
Springfields, it may help to mention that Josh is going to the one in Wisconsin. Cheers, David -- David Fetter http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: david.fet...@gmail.com iCal: webcal://www.tripit.com/feed/ical/people/david74/tri

Re: [GENERAL] Find users that have ALL categories

2010-07-01 Thread David Fetter
On Thu, Jul 01, 2010 at 12:37:55PM +0100, Sam Mason wrote: > On Thu, Jul 01, 2010 at 04:26:38AM -0700, David Fetter wrote: > > On Wed, Jun 30, 2010 at 12:11:35AM -0700, Nick wrote: > > > Is this the most efficient way to write this query? Id like to > > > get a

Re: [GENERAL] Find users that have ALL categories

2010-07-01 Thread David Fetter
ies GROUP BY user_id HAVING array_sort(array_agg(category_id)) = ARRAY[1,2,3] ORDER BY user_id; to get only exact matches. As to speed, you'd have to test on your actual data sets. Indexing user_id may help here. Cheers, David. -- David Fetter http://fetter.org/ Phone: +1 415 2

Re: [GENERAL] DBI::Oracle problems

2010-06-30 Thread David Fetter
ersion of DBI-Link using the "Download Source" link at <http://github.com/davidfetter/DBI-Link> There is also a low-traffic mailing list for the project, where questions like this are more on point :) Cheers, David. -- David Fetter http://fetter.org/ Phone: +1 415 235 377

Re: [GENERAL] Need Some Recent Information on the Differences between Postgres and MySql

2010-06-25 Thread David Fetter
ting it from being as well optimised as Postgres. Having it divided off at the place where it's divided in MySQL is certainly such a barrier. Having a storage API, as PostgreSQL used to have, and will have again with SQL/MED, doesn't necessarily present such a barrier. Cheers, David.

Re: [GENERAL] Converting a Simple Database from MySQL to PostgreSQL in 40 hours?

2010-06-24 Thread David Fetter
y to PostgreSQL Generally, getting the schema and data moved over are the first two steps in a much longer process, wherein all the apps use the database as an active database rather than a passive one, the latter being all MySQL really allows. Hope this helps :) Cheers, David. -- David Fett

Re: [GENERAL] A thought about other open source projects

2010-06-21 Thread David Fetter
e here is that nobody's saying what kind of > >app they want to write. > Or what sort of performance requirements are tied to that app. It's not performance requirements that tend to tank such projects, but the amount of maintenance involved. Extending the app gets quadraticall

Re: [GENERAL] A thought about other open source projects

2010-06-21 Thread David Fetter
out the best > > > way to encourage it. > > > > You want to encourage the use of databases that don't support relational > > integrity? > no, I want to encourage "The quickest way is to write code that will > work on any db but won't take advantage of db-spe

Re: [GENERAL] A thought about other open source projects

2010-06-21 Thread David Fetter
/index.php?/archives/33-Portability-Part-II.html Fortunately, another strategy whose effect is to defend against the above-mentioned strong-arm tactics--making a wide selection of non-proprietary RDBMSs--has succeeded. Just pick an RDBMS and max out its capabilities. Cheers, David. -- David Fetter

Re: [GENERAL] A thought about other open source projects

2010-06-20 Thread David Fetter
rchives/33-Portability-Part-II.html > That way its not a matter of porting, more a matter of starting off > right. You're assuming that the goal of "database agnostic code" is reasonable. I'd take a hard look at the trade-offs first. "Database agnostic code" sounds

Re: [GENERAL] High Availability with Postgres

2010-06-20 Thread David Fetter
tual requirements? Things that would be nice to have? What are your priorities for both? Cheers, David. -- David Fetter http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: david.fet...@gmail.com iCal: webcal://www.tripit.com/feed/ical/

Re: [GENERAL] use window as field name in 8.4

2010-06-18 Thread David Fetter
tore the dump file from 8.3 without > errors. Use 8.4's pg_dump on the running 8.3 database, and your problem will be fixed :) Cheers, David (oh, and pg_dump -Fc will let pg_restore, an enormously powerful utility, do its magic). -- David Fetter http://fetter.org/ Phone: +1 415 235 3778

Re: [GENERAL] Move data from DB2 to Postgres any software/solutions/approach?

2010-06-04 Thread David Fetter
ation. > >> > >> > >> http://wiki.postgresql.org/wiki/Converting_from_other_Databases_to_PostgreSQL#IBM_DB2 > >> > >> -- > >> Regards, > >> Richard Broersma Jr. > >> > >> Visit the Los Angeles PostgreSQL Users Group (LAPUG) &

Re: [GENERAL] server-side extension in c++

2010-06-02 Thread David Fetter
On Wed, Jun 02, 2010 at 05:41:10PM +0100, Mark Cave-Ayland wrote: > David Fetter wrote: > > >Is PostGIS following these guidelines? > > In short, no. Due to various problems in the early days with C++ > exceptions generated by the GEOS library causing problems in C (a

Re: [GENERAL] Is it possible to make the order of output the same as the order of input parameters?

2010-06-02 Thread David Fetter
orizing any day. The array-based approaches are there pretty much for convenience, i.e. for not having to input the numbers more than once, as they could easily get mistyped if you need to repeat them. Cheers, David. -- David Fetter http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!

Re: [GENERAL] Is it possible to make the order of output the same as the order of input parameters?

2010-06-02 Thread David Fetter
On Wed, Jun 02, 2010 at 03:33:16PM +0100, Sam Mason wrote: > On Wed, Jun 02, 2010 at 06:28:14AM -0700, David Fetter wrote: > > On Tue, Jun 01, 2010 at 06:16:06PM -0400, m. hvostinski wrote: > > > I have a simple query like: > > > > > > SELECT * FROM cus

Re: [GENERAL] server-side extension in c++

2010-06-02 Thread David Fetter
cleanly separated modules with pure C interfaces. If you don't #include > any Pg backend headers into any compilation units compiled with the C++ > compiler, that should do the trick. > > If you must mix Pg calls and C++, restrict your C++ objects to the heap > (ie use pointers to them

Re: [GENERAL] Is it possible to make the order of output the same as the order of input parameters?

2010-06-02 Thread David Fetter
e_subscripts((SELECT a FROM t)::integer[], 1)) SELECT i, a[i] FROM s CROSS JOIN t; $$; You can then use that set-returning function in your query. Cheers, David. -- David Fetter http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: david.

Re: [GENERAL] Write-able CTEs, Update-able views, Hierarchical data, and optimistic locking

2010-06-01 Thread David Fetter
On Sat, May 29, 2010 at 08:21:46PM -0700, Richard Broersma wrote: > On Sat, May 29, 2010 at 6:25 PM, David Fetter wrote: > > >> I wondering if write-able CTE's will be the silver bullet that > >> will make rule based update-able views based multiple vertically >

Re: [GENERAL] server-side extension in c++

2010-06-01 Thread David Fetter
nterfaces. > > This was very much pain-free, but I certainly wouldn't want to try > to use C++ code tightly intermixed with Pg backend-using code. It'd > be a nightmare. These two paragraphs, suitably changed to be more like the rest of the docs, would be a great start

Re: [GENERAL] Write-able CTEs, Update-able views, Hierarchical data, and optimistic locking

2010-05-29 Thread David Fetter
On Sat, May 29, 2010 at 09:38:30PM -0400, Bruce Momjian wrote: > David Fetter wrote: > > On Sat, May 29, 2010 at 01:29:50PM -0700, Richard Broersma wrote: > > > This might be a premature question considering write-able CTEs > > > are not in core, but... > > > &

Re: [GENERAL] Write-able CTEs, Update-able views, Hierarchical data, and optimistic locking

2010-05-29 Thread David Fetter
ues in writeable CTEs get fixed, they could become a mechanism for doing what you describe, but I suspect there would be significant work involved in harnessing them to that task. They'll be pretty nice even without the automated view stuff, though :) Cheers, David. -- David Fetter http

Re: [GENERAL] Moving from Mysql

2010-05-23 Thread David Fetter
hough, check out the GRANT command. Also check out host-based authentication, which you control with an external file called pg_hba.conf: http://www.postgresql.org/docs/current/static/client-authentication.html Cheers, David. -- David Fetter http://fetter.org/ Phone: +1 415 235 3778 AIM: df

Re: [GENERAL] Alter column position

2010-05-22 Thread David Fetter
working on it, to my knowledge. While the "SELECT *" case doesn't interest me too much, it would be part of the infrastructure needed for PostgreSQL to optimize storage by placing all fixed-length columns before any variable-length ones. Cheers, David. -- David Fetter http://fetter

Re: [GENERAL] Pulling data from a constraint def

2010-05-13 Thread David Fetter
On Thu, May 13, 2010 at 08:08:31PM -0400, Tom Lane wrote: > David Fetter writes: > > On Thu, May 13, 2010 at 12:33:08AM -0400, Tom Lane wrote: > >> I'm surprised no one has yet suggested an ENUM type. > > > I didn't suggest it because I didn't know about

Re: [GENERAL] Pulling data from a constraint def

2010-05-13 Thread David Fetter
On Thu, May 13, 2010 at 12:33:08AM -0400, Tom Lane wrote: > Josh Kupershmidt writes: > > On Wed, May 12, 2010 at 12:58 AM, David Fetter wrote: > >> If you've measured a performance issue for a table that tiny, it's a > >> bug that needs fixing in Postgre

Re: [GENERAL] [HACKERS] Retiring from the PostgreSQL core team

2010-05-13 Thread David Fetter
27;t change as fast as we all hoped and we all > think it is best now that I focus on getting back to speed and do some > serious hacking. > > I hope to see many of you in Ottawa. You can run, but you can't hide ;) Thanks for your deep and broad contributions so far, and I

Re: [GENERAL] Pulling data from a constraint def

2010-05-11 Thread David Fetter
gt; constraint for performance reasons. (Does that make sense?) If you've measured a performance issue for a table that tiny, it's a bug that needs fixing in PostgreSQL. What measurements have you done so far? Cheers, David. -- David Fetter http://fetter.org/ Phone: +1 415 235 3778

Re: [GENERAL] Inheritance efficiency

2010-04-30 Thread David Fetter
e changes, or propose that some be made, please feel free to do so after 9.0 comes out. In the mean time, please test 9.0beta1 along with any ensuing betas and release candidates, and report back the results of the aforementioned testing. Cheers, David. -- David Fetter http://fetter.org/ Pho

Re: [GENERAL] Inheritance efficiency

2010-04-29 Thread David Fetter
SQL is the community version. Proprietary forks exist, but they don't fix this kind of problem. :) Cheers, David. -- David Fetter http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: david.fet...@gmail.com iCal: webcal://www.tripit.com/fe

Re: [GENERAL] partitioned lookup table?

2010-04-17 Thread David Fetter
gt; test=*# create table foo_2 () inherits (foo); > CREATE TABLE > test=*# alter table foo_2 add primary key (i); > NOTICE: ALTER TABLE / ADD PRIMARY KEY will create implicit index > "foo_2_pkey" for table "foo_2" > ALTER TABLE Kinda. http://people.planetpostgresql.

Re: [GENERAL] autoscale cluster

2010-04-14 Thread David Fetter
after finding out how the trick is accomplished, you still have this goal, you'll know how. Cheers, David. -- David Fetter http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: david.fet...@gmail.com iCal: webcal://www.tripit.com/feed/

Re: [GENERAL] best practice in archiving CDR data

2010-03-29 Thread David Fetter
iggers are much better than RULEs for this kind of thing. The underlying functions can be made quite efficient. Cheers, David. -- David Fetter http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: david.fet...@gmail.com iCal: web

Re: [GENERAL] text search in 8.1

2010-02-22 Thread David Fetter
is out past Q3 of this year, to 9.0. Cheers, David. -- David Fetter http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: david.fet...@gmail.com iCal: webcal://www.tripit.com/feed/ical/people/david74/tripit.ics Remember to vote! Consider

Re: [GENERAL] GROUP BY column alias?

2010-02-19 Thread David Fetter
quot; that our docs implicitly and falsely assume in many spots, and we need to make them stop including this idea. The only standard actually worth citing today is SQL:2008, and the day the next one comes out, we need to change all our references to cite it. Cheers, David. -- David Fetter h

Re: [GENERAL] Possible to set postgres in case insensitive mode ?

2010-02-01 Thread David Fetter
> MySql is by default case insensitive, I just figured there'd be an option to > turn it on in PG as well. You can use citext, a supplied module. > What about 9.0 ? How is that going to be offered ? When it's ready! :) Cheers, David. -- David Fetter http://fetter.org/ Phon

Re: [GENERAL] postgres external table

2010-01-17 Thread David Fetter
o try DBI-Link. Cheers, David. -- David Fetter http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: david.fet...@gmail.com iCal: webcal://www.tripit.com/feed/ical/people/david74/tripit.ics Remember to vote! Consider donating to Postgres: http://www.

Re: [GENERAL] FOSDEM dinner

2010-01-14 Thread David Fetter
On Thu, Jan 14, 2010 at 09:51:34AM +0200, Dave Coventry wrote: > Yes, I'm in South Africa, which might make it problematic! You're on the right land mass, assuming you count being able to cross the Suez canal on foot ;) Cheers, David. -- David Fetter http://fetter.org/ Phone: +1

Re: [GENERAL] replication from multiple "master" servers to a single read-only slave

2010-01-11 Thread David Fetter
ata (i.e. they do not _need_ to "sync" with each other, nor do I > want them to be sync'd). > > Would it be possible to use PostgreSQL PITR feature to support this > functionality ? No, but you could use something like Slony to do this. Cheers, David. -- David Fetter htt

Re: [GENERAL] How psql source code can be protected?

2010-01-06 Thread David Fetter
> this is what I want to avoid. The appropriate place to protect your IP is in legal agreements. Cheers, David. -- David Fetter http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: david.fet...@gmail.com iCal: webcal://www.tripit.com/feed/i

  1   2   3   4   5   6   >