Re: [GENERAL] problem with recreating database with export

2012-09-27 Thread Dennis Gearon
The only thing that I can offer is that it works from inside psql as user postgre but NOT from invoking postgres using -f filename from the commas line as user postgre. I have to admit that I did not use -U as OS user postgres, but that shouldn't be necessary with a stock gnarled_conf file. Th

Re: [GENERAL] problem with recreating database with export

2012-09-27 Thread Dennis Gearon
Not needed if you are logged in as user postgres in your OS when you enter psql. At least, with the hba_conf file the way it is stock. But a good point, though. I wonder if I would then have to know the DATABASE password for postgres if I wasn't user postgres in the OS? Dennis Gearon

Re: [GENERAL] problem with recreating database with export

2012-09-27 Thread Dennis Gearon
lan text dump. I don't have huge databases yet, so to make it easier to go between versions, I use a text backup. Hope that answers your questions. Dennis Gearon Never, ever approach a computer saying or even thinking "I will just do this quickly." _

Re: [GENERAL] problem with recreating database with export

2012-09-26 Thread Dennis Gearon
It turns out that I had made the export from psql, a text based export. So I read that it was actually needing to be imported using '\i filename_in_local_directory' Dennis Gearon Never, ever approach a computer saying or even thinking "I will just do this quickly."

[GENERAL] problem with recreating database with export

2012-09-26 Thread Dennis Gearon
ql -d database_name -f the_file.sql I get errors on \N and various other problems. I've tried dividing the file up into: table creation one 'copy' of a table at a time. One, a 35 mbyte seems to have errors on semi colons. Dennis Gearon Never, ever approach a computer saying or even t

Re: [GENERAL] UUID column as pimrary key?

2011-01-06 Thread Dennis Gearon
st tested, theory based practices. They just make the tech world a better place with some of the most reliable, best supported OSS out there.' And you guys and gals ARE that description. Dennis Gearon Signature Warning It is always a good idea to learn from your own mis

Re: [GENERAL] UUID column as pimrary key?

2011-01-05 Thread Dennis Gearon
arehousing/map reducing arena before I'd consider THAT. And there's 'flavors' of Postgres that will do that, anyway. Dennis Gearon Signature Warning It is always a good idea to learn from your own mistakes. It is usually a better idea to learn from

[GENERAL] UUID column as pimrary key?

2011-01-04 Thread Dennis Gearon
, but never explicitly says that's how it's stored. Nor does it use one of the nice, blue headered tables for UUID (or ENUM) showing storage and other attributes as it does for numeric, character,boolean, date/time, binary, monetary, geometric, or network types. Dennis Gearon Si

Re: [GENERAL] uuid, COMB uuid, distributed farms

2011-01-02 Thread Dennis Gearon
Good catch! The article is: http://www.informit.com/articles/printerfriendly.aspx?p=25862 Dennis Gearon Signature Warning It is always a good idea to learn from your own mistakes. It is usually a better idea to learn from others’ mistakes, so you do not have to make them

Re: [GENERAL] uuid, COMB uuid, distributed farms

2011-01-02 Thread Dennis Gearon
ef-498e87a3e4b3 fa597e9c-ae35-461e-b15f-498e87a3e4b7 f3c46abf-a6b0-4c9c-b22d-498e87a3e4bb fc868307-d1b1-4253-91d7-498e87a3e4bf b79679a9-4359-42a1-bf46-498e87a3e4c3 d91bf8cb-e3be-4446-be73-498e87a3e4c7 bec9e0a1-cd85-4f0c-b35b-498e87a3e4cc 0e0ea724-e145-4932-b0df-498e87a3e4d0 30ab3e05-26e3-44af-a82f-498e87a3

Re: [GENERAL] The first dedicated PostgreSQL forum

2010-11-13 Thread Dennis Gearon
that database types are conservative by nature, almost as much as accountants. But a little change is good now and then ;-) Dennis Gearon From: Guillaume Lelarge To: r...@iol.ie Cc: Elliot Chance , pgsql-general@postgresql.org Subject: Re: The first dedicated PostgreSQL forum Message-ID

[GENERAL] help with design of the 'COUNT(*) in separate table schema

2010-10-20 Thread Dennis Gearon
NULL; END; ' LANGUAGE plpgsql; Wouldn't something like this need row-locking (SELECT for UPDATE) in order to serialize the execution of all triggers? Dennis Gearon Signature Warning It is always a good idea to learn from your own mistakes. It is usually a better

[GENERAL] select count(*) status these days

2010-10-18 Thread Dennis Gearon
r, (Love postgres otherwise). Is this still true? Is there any architectural way to speed it up? I'd actually like to run it every 2-60 seconds to update a counter on a page for the marketing guy, (which for once, is me :-) Dennis Gearon Signature Warning It is alwa

[GENERAL] Wrong starting value of sequences after doing pg_dump

2010-10-08 Thread Dennis Gearon
GCC gcc-4.4.real (Ubuntu 4.4.3-4ubuntu5) 4.4.3, 64-bit Dennis Gearon Signature Warning It is always a good idea to learn from your own mistakes. It is usually a better idea to learn from others’ mistakes, so you do not have to make them yourself. from '

Re: [GENERAL] Basic SQL question and kudos

2010-10-05 Thread Dennis Gearon
Thanks for the start. I'll start on it. Dennis Gearon Signature Warning EARTH has a Right To Life, otherwise we all die. Read 'Hot, Flat, and Crowded' Laugh at http://www.yert.com/film.php --- On Tue, 10/5/10, Craig Ringer wrote: > From: Craig Rin

[GENERAL] Basic SQL question and kudos

2010-10-05 Thread Dennis Gearon
KUDOS, I almost never need to write the postgres group . . . because it just works. It's only using postgres that I ever even read the digest that I receive. Soon I will have to write more to get performance tips. You guys are great on this list and seem to always have answers, Thx.

Re: [GENERAL] JSON output

2010-09-12 Thread Dennis Gearon
ions and billlions' of records, Mwah Ha Ha Dennis Gearon Signature Warning EARTH has a Right To Life, otherwise we all die. Read 'Hot, Flat, and Crowded' Laugh at http://www.yert.com/film.php --- On Sun, 9/12/10, Craig Ringer wrote: > From: Craig Ringer &g

[GENERAL] JSON output

2010-09-12 Thread Dennis Gearon
I'm trying to import from a postgres database (which will work in parallel) to a ElasticSearch databse (JSON input). Is there anyway to get JSON output from postgres? (googled, found only 'planner' output does this) Dennis Gearon Signature Warning EARTH has

[GENERAL] line CASE statemelnt in query a la Oracle

2010-09-08 Thread Dennis Gearon
mal title' at query time. Would this be very expensive processor timewise? I might just feed the whole long title in and have the display properties of the browser truncate it. Dennis Gearon Signature Warning EARTH has a Right To Life, otherwise we all die. Read 'Ho

[GENERAL] moderninzing/upgrading mail list format

2010-07-05 Thread Dennis Gearon
es withi postgres to them. Dennis Gearon Signature Warning EARTH has a Right To Life, otherwise we all die. Read 'Hot, Flat, and Crowded' Laugh at http://www.yert.com/film.php Dennis Gearon -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) T

[GENERAL] different language indexes

2010-07-01 Thread Dennis Gearon
collation, and then put any language that I want in it. Then make different indexes using differnt collations. So when I get a user's locality and langauge, I search for the closest index, and specifiy it when doing text based searches. Is this possible? Dennis Gearon Signature Warning -

Re: [GENERAL] world meaningful date time input

2010-06-16 Thread Dennis Gearon
for the geographical location of the datum. But the process you described went one further than I knew, the output in the local tz. Thanks for that. > Dennis Gearon > wrote: > > > > I've got an application brewing that gathers the > following data: > > locati

[GENERAL] world meaningful date time input

2010-06-16 Thread Dennis Gearon
timestamp >with timezone (i.e. it's stored in absolute time (in seconds) relative to GMT) Any easier way to do this? Dennis Gearon Signature Warning EARTH has a Right To Life, otherwise we all die. Read 'Hot, Flat, and Crowded' Laugh at http://www.yer

Re: [GENERAL] vulnerability of COPY command

2010-05-30 Thread Dennis Gearon
ing of SQL injection, anyone seen this site? http://sqlmap.sourceforge.net/demo.html Dennis Gearon Signature Warning EARTH has a Right To Life, otherwise we all die. Read 'Hot, Flat, and Crowded' Laugh at http://www.yert.com/film.php --- On Sun, 5/30/10, Tom Lane wrot

[GENERAL] vulnerability of COPY command

2010-05-29 Thread Dennis Gearon
e for bulk purposes, to be input via the command line, is Postgres vulnerable to SQL injection from that? Dennis Gearon Signature Warning EARTH has a Right To Life, otherwise we all die. Read 'Hot, Flat, and Crowded' Laugh at http://www.yert.com/film.php -- Se

[GENERAL] child/parent creation

2010-05-29 Thread Dennis Gearon
d statement(to avoid SQL injection), transaction without shuttling any information back and forth between the database and the calling script? Thanks in advance. Dennis Gearon Signature Warning EARTH has a Right To Life,   otherwise we all die. Read 'Hot, Flat, and Crowde

Re: [GENERAL] timestamp configuration

2010-05-24 Thread Dennis Gearon
for those walking up to a new server and who want to know the same information: shell script invoked by: script_filename database user #!/bin/sh psql -c "show INTEGER_DATETIMES;" -d $1 -U $2 -W Dennis Gearon Signature Warning EARTH has a Right To Life, otherw

[GENERAL] timestamp configuration

2010-05-24 Thread Dennis Gearon
is there anyway with a running instance of postgres to find out if it was compiled with: BIGINT vs DOUBLE PRECISION timestamps? Dennis Gearon Signature Warning EARTH has a Right To Life, otherwise we all die. Read 'Hot, Flat, and Crowded' Lau

Re: [GENERAL] use of IN() with literals

2010-05-18 Thread Dennis Gearon
Yep bad scraping from one site to another. Probably encoding. Thanks for telling me what (should) have been obvious about the two INs. The gobbledy gook was bad encoding between the two web pages. select Dennis Gearon Signature Warning EARTH has a Right To Life,   otherwise

[GENERAL] use of IN() with literals

2010-05-18 Thread Dennis Gearon
class where relkind IN IN (‘r’, ‘v’, ‘S’); and that doesn't work either. Dennis Gearon Signature Warning EARTH has a Right To Life, otherwise we all die. Read 'Hot, Flat, and Crowded' Laugh at http://www.yert.com/film.php -- Sent via pgsql-general mailing lis

[GENERAL] Timing Race

2010-02-21 Thread Dennis Gearon
one table at a time, it works just fine. Is this a known issue, feature, or I am doing something wrong? I thought that doing a database recovery using a copy version of a dump would be a no brainer, it would happen all in one transaction? Dennis Gearon Signature Warning EARTH

Re: [GENERAL] using column as 'mutex'

2009-12-06 Thread Dennis Gearon
Mon, Nov 30, 2009 at 9:02 PM, Dennis Gearon Dennis Gearon Merlin Moncure wrote: Just make sure that when you inspect the record, do so: a. in a transaction (preferably a brief one) and b. WITH UPDATE until your operation completes.  That way if two operations collide one will wait for the ot

[GENERAL] using column as 'mutex'

2009-11-30 Thread Dennis Gearon
? Thanks in advance. I RTFMed and Googled, but did not see the answer. Dennis Gearon Signature Warning EARTH has a Right To Life, otherwise we all die. Read 'Hot, Flat, and Crowded' Laugh at http://www.yert.com/film.php -- Sent via pgsql-general mailing list (pg

[GENERAL] pgadmin3 hangs during dump

2009-10-16 Thread Dennis Gearon
cally empty. no other fancy stuff like functions/views/installed languages/blah,blah running on Ubuntu latptop I don't know if I have log files set up or where they'd be. Dennis Gearon Signature Warning EARTH has a Right To Life I agree with Bolivia

[GENERAL] Use of Postgres in REST/JSON with BLOBS

2009-08-02 Thread Dennis Gearon
SILY 2 months worth of research and experiments in order to come to the solution that I am using. In order to share that with the Open Source world, I am posting my blog address to the related newsgroups that I'm on. http://php-rest-i18n.blogspot.com/ Comment, save yourself some research

Re: [GENERAL] Content-Type in form variables

2009-07-25 Thread Dennis Gearon
90726012447.gq5...@samason.me.uk> On Sat, Jul 25, 2009 at 11:12:15AM -0700, Dennis Gearon wrote: > If I receive a form via POST or PUT with with mulitple variables, > files, application/json, others, is there anywhere in the environment > to test he mime type of each variable

[GENERAL] Content-Type in form variables

2009-07-25 Thread Dennis Gearon
"blob_value": NULL } -103832778631715 Content-Disposition: form-data; name="blob_value"; filename="previous.png" Content-Type: image/png ‰PNG  -----103832778631715 Dennis Gearon Signature Warning ---

Re: [GENERAL] commercial adaptation of postgres

2009-07-21 Thread Dennis Gearon
Thanks Bricklen Dennis Gearon --- On Tue, 7/21/09, bricklen wrote: > From: bricklen > Subject: Re: [GENERAL] commercial adaptation of postgres > To: "Dennis Gearon" > Cc: pgsql-general@postgresql.org > Date: Tuesday, July 21, 2009, 7:33 AM > Greenplum uses a modi

[GENERAL] commercial adaptation of postgres

2009-07-20 Thread Dennis Gearon
ng like that on the commercial page of the posgres site. Does anyone know what it is out there in enterprise commercially modified postgres servers? (on 64 bit machines, preferably) Dennis Gearon Signature Warning EARTH has a Right To Life I agree with Bolivian President Evo

Re: [GENERAL] timestamp with time zone tutorial

2009-07-19 Thread Dennis Gearon
n't have that in the '/usr/share/zoneinfo/US' directory. My bad. I just have to read more on how to get it out relative to a different time zone than it went in. I'll find it. Dennis Gearon Signature Warning EARTH has a Right To Life I agree with Bolivi

Re: [GENERAL] timestamp with time zone tutorial

2009-07-19 Thread Dennis Gearon
raphical location of the SUBMITTER. > From: Adrian Klaver > Subject: Re: [GENERAL] timestamp with time zone tutorial Dennis Gearon wrote: > > None of the examples of converting a string > to_timestamp() show using a > > time zone input as an input.Does it allow full length

Re: [GENERAL] timestamp with time zone tutorial

2009-07-19 Thread Dennis Gearon
rom: Adrian Klaver > Subject: Re: [GENERAL] timestamp with time zone tutorial > To: "Dennis Gearon" > Cc: pgsql-general@postgresql.org > Date: Sunday, July 19, 2009, 5:15 PM > On Sunday 19 July 2009 4:56:09 pm > Dennis Gearon wrote: > > I read it better, and

Re: [GENERAL] timestamp with time zone tutorial

2009-07-19 Thread Dennis Gearon
I read it better, and it makes more sense now. But, I'd like it to show how to insert: 'strings' - which it does timestampz value -->using to_timestampz(...) integers::timestampz -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subsc

[GENERAL] timestamp with time zone tutorial

2009-07-19 Thread Dennis Gearon
: (1) Post a good description. (2) Post a link to a good description. (3) Give input to me so that I can write a good tutorial to post on the postgres site? TIA, Dennis Gearon Signature Warning EARTH has a Right To Life I agree with Bolivian President E

Re: [GENERAL] indexes on float8 vs integer

2009-07-12 Thread Dennis Gearon
I wish that I didn't have to say this, but that is over my head at this point. I see this HUGE, steep mountain ahead of me and a little sign in front of it saying, "Learning Curve, start here." :-) Dennis Gearon Signature Warning EARTH has a Right To Lif

Re: [GENERAL] indexes on float8 vs integer

2009-07-12 Thread Dennis Gearon
store the first data. Dennis Gearon --- On Sun, 7/12/09, Brent Wood wrote: > From: Brent Wood > Subject: Re: [GENERAL] indexes on float8 vs integer > To: gear...@sbcglobal.net > Cc: pgsql-general@postgresql.org > Date: Sunday, July 12, 2009, 1:52 PM > Hi Dennis, > > Is t

[GENERAL] indexes on float8 vs integer

2009-07-11 Thread Dennis Gearon
ogle mapes provides. I am expecting this table to be very huge. Hey, I want to be the next 'portal' :-) Dennis Gearon Signature Warning EARTH has a Right To Life I agree with Bolivian President Evo Morales # The right to life: "The right for no ecosyste

[GENERAL]

2009-07-11 Thread Dennis Gearon
Dennis Gearon Signature Warning EARTH has a Right To Life I agree with Bolivian President Evo Morales # The right to life: "The right for no ecosystem to be eliminated by the irresponsible acts of human beings." # The right of biosystems to regenerate

[GENERAL] Date Time Arithmetic Speed

2009-07-11 Thread Dennis Gearon
sults. What are the tradeoffs in storage space, indexed query speed of the DATE and TIME formats, and speed of the math for the various for the combinations of DATE and TIME that would be possible to derive timestamps from? Dennis Gearon Signature Warning EARTH has a Right To Li

Re: [GENERAL] singletons per row in table AND locking response

2009-07-07 Thread Dennis Gearon
I could have just as easily described it as a table of SERIALS, one per row, instead of per column. :0) Dennis Gearon Signature Warning EARTH has a Right To Life I agree with Bolivian President Evo Morales # The right to life: "The right for no ecosystem to be eliminat

[GENERAL] singletons per row in table AND locking response

2009-07-07 Thread Dennis Gearon
) ); CREATE UNIQUE INDEX IDX_One_Group_Row_Only ON singletons_for_last_grp_mbr_id_issued (group_id); ALTER TABLE singletons_for_last_grp_mbr_id_issued ADD CONSTRAINT group_singletons_for_last_grp_mbr_id_issued FOREIGN KEY (group_id) REFERENCES group (group_id) Dennis Gearon Signature Warning

[GENERAL] feature suggestion and return to pgsql-general :-)

2009-04-23 Thread Dennis Gearon
But a way to set a database to absolutely be strongly sql injection proof. Comments? Dennis Gearon Signature Warning EARTH has a Right To Life I agree with Bolivian President Evo Morales # The right to life: "The right for no ecosystem to be eliminated by the irresponsib

Re: [GENERAL] correct example of a functional index usage?

2004-10-22 Thread Dennis Gearon
The site seems to be down Tom. Tom Lane wrote: I don't see any indexable operator there at all. You might care to read http://developer.postgresql.org/docs/postgres/xindex.html which describes the behaviors Postgres indexes have. regards, tom lane -

Re: [GENERAL] correct example of a functional index usage?

2004-10-22 Thread Dennis Gearon
But it is possible to use multiple indexes on dates, and that is why the one at the bottom works, right? Would a single index get used for SELECT appointment FROM the_table WHERE 0 <> (date_mask && date_range); Tom Lane wrote: No, an index can be used for one or the other. Since we don't yet ha

Re: [GENERAL] table size/record limit

2004-10-22 Thread Dennis Gearon
Great Idea! When I get that far, I will try it. Gaetano Mendola wrote: For partion in some way I don't mean only split it in more tables. You can use some available tools in postgres and continue to see this table as one but implemented behind the scenes with more tables. One usefull and impressiv

[GENERAL] correct example of a functional index usage?

2004-10-21 Thread Dennis Gearon
Is the following example a good, and correct one, for using a functional index? (the 'flip_bits' function would have to be written, and for the correct size of bit(N) ): I think I came up with a better way to search through some dates. It would use a functional index. I am trying to see if a

Re: [GENERAL] table size/record limit

2004-10-20 Thread Dennis Gearon
in, however. Joshua D. Drake wrote: Dennis Gearon wrote: Google probably is much bigger, and on mainframes, and probably Oracle or DB2. Google uses a Linux cluster and there database is HUGE. I do not know which database they use. I bet they built their own specifically for what they do

Re: [GENERAL] table size/record limit

2004-10-20 Thread Dennis Gearon
Google probably is much bigger, and on mainframes, and probably Oracle or DB2. But the table I am worried about is the one sized >= 3.6 GIGA records. Tino Wildenhain wrote: Hi, Am Do, den 21.10.2004 schrieb Dennis Gearon um 1:30: I am designing something that may be the size of yahoo, google, e

[GENERAL] generic sql question

2004-10-20 Thread Dennis Gearon
My question is it possible to speed up a query doing preselects? What I'm working on could end up being a very large dataset. I hope to have 100-1000 queries per second (0r more?), and if very large tables are joined with very large tables, I imagine that the memory would be get very full, overf

[GENERAL] table size/record limit

2004-10-20 Thread Dennis Gearon
I am designing something that may be the size of yahoo, google, ebay, etc. Just ONE many to many table could possibly have the following characteristics: 3,600,000,000 records each record is 9 fields of INT4/DATE Other tables will have about 5 million records of about the same size. There a

[GENERAL] max length bit(x) bit varying(x)

2004-10-20 Thread Dennis Gearon
cc me please: I can't find in the HTML documentation the max length of a bit string. Anyone know where it is? ---(end of broadcast)--- TIP 2: you can get off all lists at once with the unregister command (send "unregister YourEma

Re: [GENERAL] connection or query affected

2004-10-12 Thread Dennis Gearon
Steven Klassen wrote: * Dennis Gearon <[EMAIL PROTECTED]> [2004-10-12 08:13:07 -0700]: turn off autocommit Per connection. start transaction commit transaction They're statements themselves that change the state of the connection. You start a transaction, run your querie

[GENERAL] connection or query affected

2004-10-12 Thread Dennis Gearon
please cc me If I am using some server side langauge to access Postgres - php, python, perl, asp, if I make a connection, do the following actions affect the connection, or the individual query that contains them: turn off autocommit start transaction commit transaction SET schema --

Re: [GENERAL] flattened tables with normalized tables

2004-10-07 Thread Dennis Gearon
Bruno Wolff III wrote: On Thu, Oct 07, 2004 at 22:35:50 -0600, Michael Fuhr <[EMAIL PROTECTED]> wrote: On Thu, Oct 07, 2004 at 09:08:18PM -0700, Dennis Gearon wrote: About regular views, how does that speed things up, other than the initial SQL interpretation of the view not needing to b

Re: [GENERAL] flattened tables with normalized tables

2004-10-07 Thread Dennis Gearon
Michael Fuhr wrote: On Thu, Oct 07, 2004 at 09:08:18PM -0700, Dennis Gearon wrote: About regular views, how does that speed things up, other than the initial SQL interpretation of the view not needing to be done? I didn't mean to imply that views would speed things up -- I was merely sugge

Re: [GENERAL] flattened tables with normalized tables

2004-10-07 Thread Dennis Gearon
Michael Fuhr wrote: On Thu, Oct 07, 2004 at 10:07:47AM -0700, Dennis Gearon wrote: If I want to set up a dbase with normalized tables for inserts,and a flattened table for selects, am i going in the right direction for speeding up a busy site? Are you familiar with views? If so, is there a

[GENERAL] flattened tables with normalized tables

2004-10-07 Thread Dennis Gearon
If I want to set up a dbase with normalized tables for inserts,and a flattened table for selects, am i going in the right direction for speeding up a busy site? Also, if some of you are also doing this, how and how often do you do the SELECT from the normalized tables to the flattened table? An

Re: [GENERAL] database constraints

2004-10-06 Thread Dennis Gearon
Use a post trigger function, ON UPDATE, INSERT which essentially has this in it: if ( ISNULL(new.a) AND ISNULL(new.b) ){ RAISE NOTICE "blah blah"; } I work with PHP a lot, just a little plpgsql, so, the grammar may be wrong above. Ben <[EMAIL PROTECTED]> wrote: If I have have the table: create

[GENERAL] storage representation of DATE and TIME types

2004-10-05 Thread Dennis Gearon
please cc me as I am on digetst: What is the storage format of 'date'? Is it like a timestamp? I want to know in order to choose representations in a table that will receive LOTS of reads with a WHERE clause that chooses dates, and TIMES, past a supplied reference

[GENERAL] compiler for functions

2004-09-28 Thread Dennis Gearon
The postgres engine saves the function bodies, at least, without removing the carriage returns. Could it be changed to report the LINE within the function body that has the problem, based on the carriage return? I don't have an editor that counts characters within a document, but even if I did,

[GENERAL] difference 7.3.xx vs 7.4.xx

2004-09-21 Thread Dennis Gearon
I just read release notes for 7.4 where it said:( in plpgsql) allows declaration of record type without %ROWTYPE So, before that, there was no way to have a record returned of arbitrary fields from a User Defined Function? ---(end of broadcast)--

[GENERAL] basics on User Defined Functions

2004-09-20 Thread Dennis Gearon
Is this the correct way to return values in a record from a UDF in 7.4.+ ? Is it ok to modify the arguments as in 'arg_int'? -- return type should be RECORD -- CREATE OR REPLACE FUNCTION test_function( int ) RETURNS RECORD AS ' DECLARE arg_int ALIAS FOR $1; var_record_out

[GENERAL] Release of 8.0.0

2004-09-10 Thread Dennis Gearon
WOW, that is the most comprehensive, 'nearing to commercial capability' update of Postgres (and any OTHER OSS project) that I've seen in all my readings about and dealings with Postgres. I would be VERY surprised if Postgres doesn't win some major awards (and accounts) now that this has happened

[GENERAL] test

2004-09-08 Thread Dennis Gearon
I don't seem to see my messages in the digest. Is this a mail setting? I thought that only blockable in the single message mode. ---(end of broadcast)--- TIP 3: if posting/reading through Usenet, please send an appropriate subscribe-nomail comma

[GENERAL] functions/stored procedures

2004-08-31 Thread Dennis Gearon
please CC me. Are the UDF/functions/procedures written by users available in all schemas in a DB? ---(end of broadcast)--- TIP 7: don't forget to increase your free space map settings

Re: [GENERAL] username length character limits?

2004-07-03 Thread Dennis Gearon
Stephan Szabo wrote: On Sat, 3 Jul 2004, Dennis Gearon wrote: Stephan Szabo wrote: IIRC, psql (and the createuser shell script and such) treat it as if you had double quoted its argument because of the way shells handle quotes which would necessitate something like '"FOO"&#

Re: [GENERAL] username length character limits?

2004-07-03 Thread Dennis Gearon
Stephan Szabo wrote: On Sat, 3 Jul 2004, Dennis Gearon wrote: Stephan Szabo wrote: On Sat, 3 Jul 2004, Dennis Gearon wrote: Please CC me: If I create the user 'web_user' with password 'password' I can connect using 'psql' just fine. If I create the user 'D1

Re: [GENERAL] username length character limits?

2004-07-03 Thread Dennis Gearon
Stephan Szabo wrote: On Sat, 3 Jul 2004, Dennis Gearon wrote: Please CC me: If I create the user 'web_user' with password 'password' I can connect using 'psql' just fine. If I create the user 'D1Khb2g5m7FGk_web_user' with password 'password' I

Re: [GENERAL] username length character limits?

2004-07-03 Thread Dennis Gearon
length characters character set (?) for user names? one underscore and a short name. Dennis Gearon wrote: Please CC me: If I create the user 'web_user' with password 'password' I can connect using 'psql' just fine. If I create the user 'D1Khb2g5m7FGk_web_user

Re: [GENERAL] username length character limits?

2004-07-03 Thread Dennis Gearon
another name that does not work is 'H1q2W3e4R5_web_user'. It seems to not like many alternations between numbers and letters. Dennis Gearon wrote: Please CC me: If I create the user 'web_user' with password 'password' I can connect using 'ps

Re: [GENERAL] username length character limits?

2004-07-03 Thread Dennis Gearon
er, so the system is finding it, I just can't authenticate into it. Dennis Gearon wrote: Please CC me: If I create the user 'web_user' with password 'password' I can connect using 'psql' just fine. If I create the user 'D1Khb2g5m7FGk_web_user&#x

[GENERAL] username length character limits?

2004-07-03 Thread Dennis Gearon
Please CC me: If I create the user 'web_user' with password 'password' I can connect using 'psql' just fine. If I create the user 'D1Khb2g5m7FGk_web_user' with password 'password' I CANNOT connect using 'psql', I get authentication error. - ANYONE have any ideas why? ---

[GENERAL] connection parameters

2004-07-03 Thread Dennis Gearon
Please CC me. When I connect to a database from PHP script called from the web via Apache, running on the same machine as the DB, that's server name "localhost", right? I can't seem to get a php script to connect with the same parameters that I can use using telnet and 'psql'. --

Re: [GENERAL] backups

2004-06-30 Thread Dennis Gearon
Bruno Wolff III wrote: On Wed, Jun 30, 2004 at 18:23:08 -0500, [EMAIL PROTECTED] wrote: What do other sites with mondo databases do? There have been comments from people using storage systems that they can freeze the storage system and get a consistant snap shot of the file system. This can be u

Re: [GENERAL] Internationalization

2004-06-30 Thread Dennis Gearon
Tom Lane wrote: Dennis Gearon <[EMAIL PROTECTED]> writes: Tom Lane wrote: The indexes on the shared system tables (eg, pg_database) are the only issue here. One possible solution is to require that no locale-aware datatypes ever be used in these indexes. I think right now this is true b

Re: [GENERAL] ~Strange Operators~

2004-06-30 Thread Dennis Gearon
Tom Lane wrote: Chris Gamache <[EMAIL PROTECTED]> writes: ~>=~ ~<=~ ~<>~ ~<~ ~=~ ~>~ They aren't familiar to me, but I can tell that they are text comparison operators. The details of what and how they compare is a mystery to me! Those are the non-locale-aware operators that Peter added to suppo

[GENERAL] hackers dudes

2004-06-24 Thread Dennis Gearon
So, do you guys ever get together physically with a white board? ---(end of broadcast)--- TIP 7: don't forget to increase your free space map settings

Re: [GENERAL] langauges, locales, regex, LIKE

2004-06-24 Thread Dennis Gearon
John Sidney-Woollett wrote: For what it's worth, we have a unicode 7.4.1 database which gives us the sorting and searching behaviour that we expect (with the exception of the upper and lower functions). We access the data via jdbc so we don't have to deal with encoding issues per se as the drive

Re: [GENERAL] langauges, locales, regex, LIKE

2004-06-24 Thread Dennis Gearon
Richard Huxton wrote: Dennis Gearon wrote: If I've read everything right, in order to get: multiple languages on a site with the functionality of ALL of: REGEX LIKE Correctly sorted text A site would have to: create a cluster for every language needed run a sep

Re: [GENERAL] unicode and sorting(at least)

2004-06-24 Thread Dennis Gearon
e. Tatsuo Ishii wrote: On Wed, 23 Jun 2004, Dennis Gearon wrote: This is what has to be eventually done:(as sybase, and probably others do it) http://www.ianywhere.com/whitepapers/unicode.html Actually, what probably has to be eventually done is what's in the SQL spec. Which is AFAICS basic

Re: [GENERAL] JDBC driver inserting into a table with Bytea type gets out of

2004-06-21 Thread Dennis Gearon
AFAIK, every database uses some sort of 'large object interface'. Surely you could still move between DBs even using BLOB fields? "Sailer, Denis (YBUSA-CDR)" <[EMAIL PROTECTED]> wrote: There was a posting in the mailing list archives that I can't find anymore. The web site right now is present

[GENERAL] C_LOCALE vs. UTF8

2004-06-14 Thread Dennis Gearon
H.., There was a post running about using C_LOCALE is the only way to use LIKE, and I put something similar to the below in comment to it. It never showed up on the list. Oh well. If I wanted a multinational database capable of many langauges,and wanted the most functionality of sor

[GENERAL] generic insert into table

2004-06-07 Thread Dennis Gearon
please CC me, I am on digest - I have the following code from an application that is 'mysql_centric'. I want to make it generic across all databases, if it's possible, especially postgres :-) mysql version: INSERT INTO calendar_setting SET setting='colorEvent',

Re: [GENERAL] GRANT question

2004-06-03 Thread Dennis Gearon
<>How about using phpPgAdmin? Or something like that? Also, is there a SQL statement that will return all the possible privileges? Use that in a subselect and then grant WHERE? Chris Ochs <[EMAIL PROTECTED]> wrote: Is there a shortcut to grant all privileges on a schema and it's objects to a use

Re: [GENERAL] one to many

2004-05-16 Thread Dennis Gearon
Stephan Szabo wrote: On Sun, 16 May 2004, Dennis Gearon wrote: CC me please. How do I set up a one to many relationship in Postgres, (any DB for that matter.) I.E., if a delete or update of a child table causes a row in the parent table to no longer refer to any rows in the child table, to

Re: [GENERAL] one to many

2004-05-16 Thread Dennis Gearon
Peter Eisentraut wrote: Dennis Gearon wrote: How do I set up a one to many relationship in Postgres, (any DB for that matter.) Read about foreign keys: http://www.postgresql.org/docs/7.4/static/ddl-constraints.html#DDL-CONSTRAINTS-FK That only takes care of if the PARENT is deleted

[GENERAL] Interesting Unique Index Needed - Functional?

2004-05-16 Thread Dennis Gearon
Given: CREATE TABLE Usrs( usr_id SERIAL NOT NULL PRIMARY KEY, usr VARCHAR(64) NOT NULL UNIQUE ); CREATE TABLE Emails( email_id SERIAL NOT NULL PRIMARY KEY, email VARCHAR(128) NOT NULL UNIQUE ); CREATE TABLE EmailTypes( email_type_id SERIAL NOT NULL PRIMARY KEY, ema

Re: [GENERAL] bytea

2004-05-11 Thread Dennis Gearon
Thanks for all the answers everybody, but I need to know also an answer to the other question: Does the bytea make its own files automatically for large objects? Also, how about backups with tables having bytea columns.? Jonathan Bartlett wrote: Also, if I wanted to put a *.pdf file in a bytea

Re: [GENERAL] bytea

2004-05-11 Thread Dennis Gearon
I forgot, please CC me, I am on digest. Dennis Gearon wrote: when bytea, text, and varchar(no limit entered) columns are used, do they ALWAYS use an extra table/file? Or do they only do it after a certain size of input? Also, if I wanted to put a *.pdf file in a bytea column, what functions do

[GENERAL] bytea

2004-05-11 Thread Dennis Gearon
when bytea, text, and varchar(no limit entered) columns are used, do they ALWAYS use an extra table/file? Or do they only do it after a certain size of input? Also, if I wanted to put a *.pdf file in a bytea column, what functions do I use to escape any characters in it? --

  1   2   3   >