Re: [SQL] More efficient DELETE ... ?

2000-09-29 Thread Bruce Momjian
Just a reminder that this is taken care of. It only WARNs in cases where we suspect they really made a mistake. test=> select * from pg_class s where pg_class.oid =34; NOTICE: Adding missing FROM-clause entry for table pg_class > Bruce Momjian <[EMAIL PROTECTED

Re: [SQL] question on diagnostics

2000-10-01 Thread Bruce Momjian
() -- backend closed the channel unexpectedly. > This probably means the backend terminated abnormally > before or while processing the request. > The connection to the server was lost. Attempting reset: Failed. > > > alex > > -- Bruce Momjian

Re: [SQL] Something I'd like to try...

2000-10-02 Thread Bruce Momjian
HJhjaJ023J19KJAqp' > > It is not currently possible to alias EMPLOYEES > so that the test can become > > E.EMPLOYEE_ID = UU.EMPLOYEE_ID > > Do the guru's think that this would be hard to add? Also, > is it desirable? > -- >

Re: [SQL] OID Perfomance - Object-Relational databases

2000-10-08 Thread Bruce Momjian
> table, per-table sequence values look like a better bet. > > Somebody (urgently) needs to tell all of the above to Bruce > Momjian (I've cc'd him); his book-in-the-making points up > OID's as a convenient and universal way to identify and link > tuples (chapter 7

Re: [SQL] OID Perfomance - Object-Relational databases

2000-10-09 Thread Bruce Momjian
gt; > > method, then there isn't really a problem even if I do > > use > > > OIDs as a primary index. None of my OIDs still in use > > will > > > be touched. > > > > > > No, it uses all oids, and can create duplicates. > &

Re: [SQL] OID Perfomance - Object-Relational databases

2000-10-09 Thread Bruce Momjian
t; and data management solutions (415) 436-9166 >for law firms, small businesses fax 436-0137 > and non-profit organizations. pager 338-4078 > San Francisco > -- Bruce Momjian| http://candle.ph

Re: [SQL] Regular expression query

2000-10-15 Thread Bruce Momjian
eve there is an item on the > TODO list about upgrading the regexp parser to something more modern > ... feel free to hop on that project if it's bugging you ... I bug Henry Spencer regularly. His new code is in TCL/TK, but has not been released into any other code. -- Bru

Re: [SQL] Variable-length Types

2000-10-15 Thread Bruce Momjian
; More code > > -Josh > > -- > __AGLIO DATABASE SOLUTIONS___ > Josh Berkus >Complete information technology [EMAIL PROTECTED] > and data management solutions (415) 436-9166 >

Re: [SQL] nested transactions

2000-10-17 Thread Bruce Momjian
Net yet. [ Charset ISO-8859-15 unsupported, converting... ] > Hi, > > Just out of curiousity, does Postgres support nested transactions? > > > - Bernie Content-Description: Card for Bernie Huang [ Attachment, skipping... ] -- Bruce Momjian

Re: [SQL] problem with select where like ']'

2000-10-17 Thread Bruce Momjian
gt; http://www.postgresql.org/lists/mailing-list.html > > Dunno how to get there from the site toplevel... > > regards, tom lane > -- Bruce Momjian| http://candle.pha.pa.us [EMAIL PROTECTED] | (610) 853-3000

Re: [SQL] problem with select where like ']'

2000-10-17 Thread Bruce Momjian
e (developer > and user). Don't get too attached to the url below, it will be going > away very soon. Oh, I see it now. Thanks. -- Bruce Momjian| http://candle.pha.pa.us [EMAIL PROTECTED] | (610) 853-3000 + If your life is a hard drive,

Re: [SQL] INSERT [IGNORE] INTO TABLE

2000-11-01 Thread Bruce Momjian
IF FOUND > THEN > RETURN ''f''; > ELSE > INSERT INTO USERS(username,password) > values(USR,PWORD); > RETURN ''t''; > END IF; > > END;' > LANGUAGE 'plpgsql'; > > Regards. > Najm > > -- Bruce Momjian| http://candle.pha.pa.us [EMAIL PROTECTED] | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup.| Drexel Hill, Pennsylvania 19026

Re: [SQL] trying to pattern match to a value contained in a column

2000-12-09 Thread Bruce Momjian
sample || '%'); > > ERROR: parser: syntax error at or near "||" > > I seem to recall that || (and most other operators) wasn't > considered associative by the grammar way back when. > Try a fully parenthesized expression: Yes || had strange problems in t

Re: [SQL] postgres

2000-12-15 Thread Bruce Momjian
rporate support is mostly for serious PostgreSQL users, not new people. -- Bruce Momjian| http://candle.pha.pa.us [EMAIL PROTECTED] | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup.| Drexel Hill, Pennsylvania 19026

Re: [Re: [SQL] postgres]

2000-12-15 Thread Bruce Momjian
Utah State University > Space Dynamics Laboratory Web Developer > USU Free Software & GNU/Linux Clubhttp://fslc.usu.edu > My home page - http://www.brasileiro.net/roberto > > > ________ > Get yo

Re: [SQL] Best database structure for timely ordered values

2000-12-18 Thread Bruce Momjian
ique index on that column.) I assume the user is concerned about non-balanced btrees. Ours are auto-balancing. -- Bruce Momjian| http://candle.pha.pa.us [EMAIL PROTECTED] | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup.| Drexel Hill, Pennsylvania 19026

Re: [SQL] Best database structure for timely ordered values

2000-12-18 Thread Bruce Momjian
; May be version 7.0.3 will give a better result. The larger problem is that count(*) doesn't use the index at all. It just does a sequential scan of the heap table. -- Bruce Momjian| http://candle.pha.pa.us [EMAIL PROTECTED] | (610) 853-3000

Re: [SQL] Release date for 7.5?

2001-01-02 Thread Bruce Momjian
gt; Thanx, > Mike Diehl. > > -- Bruce Momjian| http://candle.pha.pa.us [EMAIL PROTECTED] | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup.| Drexel Hill, Pennsylvania 19026

Re: [HACKERS] Re: [SQL] PostgreSQL web page

2001-01-09 Thread Bruce Momjian
nce ... but I thought the > Award was definitely up there already ... Looks OK here. Maybe a bad mirror. Do: http://www.postgresql.org/index.html to avoid any mirrors. -- Bruce Momjian| http://candle.pha.pa.us [EMAIL PROTECTED] | (610) 8

Re: [SQL] Bruce's Book and Built-in Functions

2001-01-16 Thread Bruce Momjian
gt; frustrating! Sure, chapter 9 has it. See the online version. There is a huge table, though currval is mentioned in the sequences chapter because it is not like normal functions. -- Bruce Momjian| http://candle.pha.pa.us [EMAIL PROTECTED] | (610) 85

Re: [SQL] Selecting Current value from a sequence

2001-01-18 Thread Bruce Momjian
t; from ver. 6.5. It does, or only the standard SQL functions? Do they have PostgreSQL-specific stuff. -- Bruce Momjian| http://candle.pha.pa.us [EMAIL PROTECTED] | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup.| Drexel Hill, Pennsylvania 19026

Re: [SQL] Selecting Current value from a sequence

2001-01-18 Thread Bruce Momjian
tement but I can't recall it... Help me please before I get > myself get fired -:). > Regards, Najm > > -- Bruce Momjian| http://candle.pha.pa.us [EMAIL PROTECTED] | (610) 853-3000 + If your life is a hard drive, | 830 Blythe A

Re: [SQL] PostgreSQL HOWTO

2001-01-18 Thread Bruce Momjian
> Hello, > > I do not see how it puts the Postgres community in a bad light, although I > do see how the author is a moron. Many of use fell is puts Linux in a bad light. :-) -- Bruce Momjian| http://candle.pha.pa.us [EMAIL PROTECTED]

Re: [SQL] PostgreSQL HOWTO & LDp

2001-01-18 Thread Bruce Momjian
> Hello, > > I am the Webmaster of the LDP... What should I know? OK, just read a little bit of it. After you stop laughing, come on back and we can talk. :-) -- Bruce Momjian| http://candle.pha.pa.us [EMAIL PROTECTED] | (610) 853-300

Re: [SQL] PostgreSQL HOWTO

2001-01-18 Thread Bruce Momjian
ers him from the 386BSD Usenet groups. -- Bruce Momjian| http://candle.pha.pa.us [EMAIL PROTECTED] | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup.| Drexel Hill, Pennsylvania 19026

Re: [SQL] Re: is there a mysql to postgresql sql converter?

2001-01-22 Thread Bruce Momjian
--- > > > >Name: my2pg.pl > > > >my2pg.plType: Perl Program (application/x-perl) > > > >Encoding: base64 > > > > > > > > > thats cool!! > > &

[SQL] Re: [GENERAL] MySQL -> Postgres dump converter

2001-01-22 Thread Bruce Momjian
ng, supports MySQL ENUMs, near the end > are SET emulation. Please help me to test. > > Max Rudensky. > -- Bruce Momjian| http://candle.pha.pa.us [EMAIL PROTECTED] | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue

Re: [SQL] Use of INNER JOIN and others ??!?

2001-01-24 Thread Bruce Momjian
> Is it possible to use the statements INNER JOIN, OUTER JOIN, LEFT JOIN > and RIGHT JOIN in the new version of PostgreSQL 7.1 ? Yes in 7.1beta. See FAQ 'outer' entry for a short description. -- Bruce Momjian| http://candle.pha.pa.us

Re: [SQL] Upgrade to 7.0.3

2001-01-29 Thread Bruce Momjian
r than 6.5.3. -- Bruce Momjian| http://candle.pha.pa.us [EMAIL PROTECTED] | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup.| Drexel Hill, Pennsylvania 19026

Re: [SQL] Bug with rules in 7.0.3?

2001-02-04 Thread Bruce Momjian
sgml file, and this example query is no longer in the file. Not sure why it was removed, but it will not appear in 7.1. -- Bruce Momjian| http://candle.pha.pa.us [EMAIL PROTECTED] | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup.| Drexel Hill, Pennsylvania 19026

Re: [SQL] Re: PL/PGSQL Cook Book

2001-02-09 Thread Bruce Momjian
rly documented, the only way i found to figure out > its capabilities were to scour the mailing lists, the openacs code, and the > plpgsql implementation source. any attempt to better this documentation would > IMO, be a worthwhile effort. I have added PL/PgSQL to the open 7.1 docs li

Re: [SQL] PL/PGSQL Cook Book

2001-02-12 Thread Bruce Momjian
erl, PL/Tcl? > >How do variable scopes work in PL/PGSQL? > >Can I output variables from a function to the command line for debugging >purposes? > >How to debug PL/PGSQL? > >Various examples for each of the statements > >

Re: [SQL] C/C++ interface

2001-02-13 Thread Bruce Momjian
no information whether > the query succeeded. > > Is someone maintaining the C++ interface and its documentation? > > > Thanks, > > Volker Paul > -- Bruce Momjian| http://candle.pha.pa.us [EMAIL PROTECTED] | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup.| Drexel Hill, Pennsylvania 19026

Re: [SQL] Controlling Reuslts with Limit

2001-02-23 Thread Bruce Momjian
there is no guarantee which rows will be returned. You may get the rows you want, or you may not. Without the ORDER BY, the backend can return any five rows it wishes. -- Bruce Momjian| http://candle.pha.pa.us [EMAIL PROTECTED] | (610) 853-3000

Re: [SQL] Controlling Reuslts with Limit

2001-02-23 Thread Bruce Momjian
do "col > 12" you may get it in index order by the column indexes, or you may not, depending on the constant, the size of the table, vacuum, vacuum analyze, etc. -- Bruce Momjian| http://candle.pha.pa.us [EMAIL PROTECTED] | (610) 853-3000

[SQL] Re: [GENERAL] Debug messages in beta5

2001-02-28 Thread Bruce Momjian
m.ropnum = l.ropnum > and m.inum = l.inum > and m.minum = l.minum > and m.bminum = l.bminum) as lquant, > (select p.base||'('||p.parm||')' from prd_part_v_base p where > p.pnum = m.pnum) as pname, >

Re: [SQL] Weird NOT IN effect with NULL values

2001-03-01 Thread Bruce Momjian
eries section titled "NOT IN and Subqueries with NULL Values". -- Bruce Momjian| http://candle.pha.pa.us [EMAIL PROTECTED] | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup.| Drexel Hill, Pennsylvania 19026

Re: [SQL] Weird NOT IN effect with NULL values

2001-03-01 Thread Bruce Momjian
bad idea for any subselect on > medium-large tables. FAQ item mentions this, and section 8.2 shows eqivalency at the end of the section. -- Bruce Momjian| http://candle.pha.pa.us [EMAIL PROTECTED] | (610) 853-3000 + If your life is a hard drive, |

Re: [SQL] PL/SQL-to-PL/PgSQL-HOWTO beta Available

2001-03-05 Thread Bruce Momjian
http://fslc.usu.edu > My home page - http://www.brasileiro.net/roberto > -- Bruce Momjian| http://candle.pha.pa.us [EMAIL PROTECTED] | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup.| D

Re: [SQL] random

2001-03-05 Thread Bruce Momjian
lect random(); random --- 0.896045367650709 (1 row) However: test=> select * from pg_class order by random(); does return some output. Is it random, and if so, how? -- Bruce Momjian| http://candle.pha.pa.us [EMAIL PROTECTED]

Re: [SQL] Optimizing Query

2001-03-05 Thread Bruce Momjian
Network for Strategic Missions > [EMAIL PROTECTED] 1732 South Park Court > http://www.strategicnetwork.org Chesapeake, VA 23320, USA > Reality Check e-zine: [EMAIL PROTECTED] > ____ > Law: Never retreat. Never surrender. Never cut a deal with a dr

Re: [SQL] random

2001-03-05 Thread Bruce Momjian
> Bruce Momjian <[EMAIL PROTECTED]> writes: > >> Jelle Ouwerkerk <[EMAIL PROTECTED]> writes: > > Also, is there a way to randomize the order of a result set? > >> > >> There's always > >> SELECT * FROM foo ORDER BY random(); > &

Re: [SQL] Optimizing Query

2001-03-05 Thread Bruce Momjian
Yes. > On Mon, Mar 05, 2001 at 04:07:57PM -0500, Bruce Momjian allegedly wrote: > > Have you tried VACUUM ANALYZE and CLUSTER? > > I assume CLUSTER still drops all indexes except the one you're clustering > on? > > Mathijs > -- > It's not that pe

Re: [SQL] random

2001-03-05 Thread Bruce Momjian
> Bruce Momjian <[EMAIL PROTECTED]> writes: > > But random returns a random value from 0-1, right? How does that work > > in ORDER BY? > > What's the problem? Each row gets a different random value, then we > sort. Oh, I see. Nifty. I am used to seeing

Re: [SQL] Quick question MySQL --> PgSQL

2001-03-06 Thread Bruce Momjian
> > > there is one in contrib > > as well there is some through freshmeat.net There are two in /contrib. One from pgsql.com, and another from freshmeat.net: http://ziet.zhitomir.ua/~fonin/code/ I would like to see these merged someday. --

Re: [SQL] Query Limitations

2001-03-06 Thread Bruce Momjian
> Is it default higher in 7.0? Yes. > > What is the most stable 7.X release? 7.0.3 -- Bruce Momjian| http://candle.pha.pa.us [EMAIL PROTECTED] | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Ch

Re: [SQL] PL/pgSQL "compilation error"

2001-03-14 Thread Bruce Momjian
> On Wed, Mar 14, 2001 at 10:33:49AM -0500, Bruce Momjian wrote: > > It is hard to test this without the table schema, but I think you are > > missing some END IF's in the code above. Those are not elif's, but > > actual new IF's that need their own END IF, I

Re: [SQL] PL/pgSQL "compilation error"

2001-03-14 Thread Bruce Momjian
up_artifact_id=new.group_artifact_id; > END IF; > END IF; >END IF; >RETURN NEW; It is hard to test this without the table schema, but I think you are missing some END IF's in the code above. Those are not elif's, but actual new IF's that need their own END IF

Re: [SQL] PL/pgSQL "compilation error"

2001-03-14 Thread Bruce Momjian
> Bruce Momjian writes: > > > There is a PL/PgSQL HowTo that we are trying to integrate into the docs > > for 7.1. Anyone have a URL or status on that? > > It's not a PL/pgSQL Howto, it's just a documentation how to port from > Oracle's PL/SQL. T

Re: [SQL] PL/pgSQL "compilation error"

2001-03-14 Thread Bruce Momjian
erfect format for learning/cut & paste. I am told that the cookbook has been merged into the 7.1beta docs. -- Bruce Momjian| http://candle.pha.pa.us [EMAIL PROTECTED] | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue

Re: [SQL] Re: Use of the LIMIT clause ?

2001-03-20 Thread Bruce Momjian
that it's worth it... it seems to inconvenience some > people either way. I may soon be moving a moderately complex system > from MySQL to Postgres and it wouldn't be the end of my world if > I had to reverse all the LIMITs. > > Richard > > ---(

Re: [SQL] Re: Use of the LIMIT clause ?

2001-03-20 Thread Bruce Momjian
> Bruce Momjian <[EMAIL PROTECTED]> writes: > > Is this a TODO item? Seems we should match MySQL, seeing as we took the > > feature syntax from them. > > Question is, will more people be inconvenienced if we change it than if > we leave it alone? Seems like s

Re: [SQL] Maybe a Bug, maybe bad SQL

2001-03-20 Thread Bruce Momjian
Daryl Herzmann > > > ---(end of broadcast)------- > TIP 5: Have you checked our extensive FAQ? > > http://www.postgresql.org/users-lounge/docs/faq.html > -- Bruce Momjian| http://candle.pha.pa.us

Re: [SQL] Maybe a Bug, maybe bad SQL

2001-03-21 Thread Bruce Momjian
to the person as well as CC to the list when the > person is on the list anyhow? Good question. They get the reply faster by sending it to them and the list, and if someone later wants to reply only to the poster, they have the email address right there. -- Bruce Momjian

Re: [SQL] Maybe a Bug, maybe bad SQL

2001-03-21 Thread Bruce Momjian
mode. Reply to user goes only to the poster, while reply-to group goes to both. At least that is how I understand the issue. -- Bruce Momjian| http://candle.pha.pa.us [EMAIL PROTECTED] | (610) 853-3000 + If your life is a hard

Re: [SQL] how do I check if a temporary table exists?

2001-03-24 Thread Bruce Momjian
(eNTP) | what's for dinner. > > ---(end of broadcast)------- > TIP 4: Don't 'kill -9' the postmaster > -- Bruce Momjian| http://candle.pha.pa.us [EMAIL PROTECTED] | (610

Re: [SQL] Re: [HACKERS] triggered data change violation

2001-03-20 Thread Bruce Momjian
] I personally think we could do better on the wording of that error message, at least until we get it fixed. -- Bruce Momjian| http://candle.pha.pa.us [EMAIL PROTECTED] | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Chri

Re: [SQL] serial type; race conditions

2001-03-26 Thread Bruce Momjian
at serial is implemented in such a way that race conditions between > DB connections can't happen. > > Is this true? Safe. See FAQ item. currval is for your backend only. -- Bruce Momjian| http://candle.pha.pa.us [EMAIL PROTECTED] |

Re: [SQL] RE: pl/pgsql and returning rows

2001-03-27 Thread Bruce Momjian
p of my head, you might try a view with a select rule, > > although I'm not completely clear what your objectives are. > > > > - Richard Huxton > > > > > > ---(end of broadcast)--- > > TIP 1: subscribe

Re: [SQL] RE: pl/pgsql and returning rows

2001-03-27 Thread Bruce Momjian
FYI, I am always looking for additional examples that I should add in the next edition. > Yes: good example! I keep a printed copy on my desk... :-) > > > -Original Message- > > From: Bruce Momjian [SMTP:[EMAIL PROTECTED]] > > Sent: Tuesday, March

Re: [SQL] serial type; race conditions

2001-03-29 Thread Bruce Momjian
t; the empty row. > > Thanks, it is getting clearer You really can't use sequences with no gaps. Sequence numbers are not _held_ until commit because it would block other backends trying to get sequence numbers. -- Bruce Momjian| http://candle.pha.p

Re: [SQL] Inheritance Semantics

2001-04-09 Thread Bruce Momjian
members of a class. That is on the TODO list, so I think we want it to happen. -- Bruce Momjian| http://candle.pha.pa.us [EMAIL PROTECTED] | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ c

Re: [SQL] Savepoints

2001-04-13 Thread Bruce Momjian
> Does PostgreSQL currently support something like savepoints in Oracle? No, sorry, but we know we need them. -- Bruce Momjian| http://candle.pha.pa.us [EMAIL PROTECTED] | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Ave

Re: [SQL] RTREE on pointsy

2001-04-18 Thread Bruce Momjian
---(end of broadcast)--- > TIP 5: Have you checked our extensive FAQ? > > http://www.postgresql.org/users-lounge/docs/faq.html > -- Bruce Momjian| http://candle.pha.pa.us [EMAIL PROTECTED] | (610) 853-3

Re: [SQL] SET SEQSCAN TO OFF - error

2001-04-26 Thread Bruce Momjian
test=> set enable_seqscan to off; SET VARIABLE -- Bruce Momjian| http://candle.pha.pa.us [EMAIL PROTECTED] | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your back

Re: [SQL] How to encode and decode password in pgsql !!

2001-05-03 Thread Bruce Momjian
> It will appear in 7.1.1, to be released soon. -- Bruce Momjian| http://candle.pha.pa.us [EMAIL PROTECTED] | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup.

Re: [SQL] Re: Use of the LIMIT clause ?

2001-05-04 Thread Bruce Momjian
moderately complex system > from MySQL to Postgres and it wouldn't be the end of my world if > I had to reverse all the LIMITs. > Added to TODO. If we took the feature from MySQL, seems we should match it. This will require a clear notice in the release notes: * Change LIMI

Re: [SQL] PGAccess/pgplsql Blues

2001-07-09 Thread Bruce Momjian
7293 > for law firms, small businessesfax 621-2533 > and non-profit organizations. San Francisco > > ---(end of broadcast)------- > TIP 2: you can get off all lists at once with the unregister command > (send "unregister Your

Re: [SQL] Hey! ORDER BY in VIEWS?

2001-07-15 Thread Bruce Momjian
appropriate > subscribe-nomail command to [EMAIL PROTECTED] so that your > message can get through to the mailing list cleanly -- Bruce Momjian| http://candle.pha.pa.us [EMAIL PROTECTED] | (610) 853-3000 + If your life is a hard drive, | 830

Re: [SQL] Hey! ORDER BY in VIEWS?

2001-07-16 Thread Bruce Momjian
ng the idea of ORDER BY in a view until someone suggested LIMIT and ORDER BY, at which point we had to enable it. I think Tom did the work. -- Bruce Momjian| http://candle.pha.pa.us [EMAIL PROTECTED] | (610) 853-3000 + If your life is a hard driv

Re: [SQL] pl/pgsql - code review + question

2001-07-20 Thread Bruce Momjian
> Josh - if I try and do OFFSET at the same time (presumably it's the same > change) do you fancy acting as a sanity test site? > Both LIMIT and OFFSET seem to have that restriction. I will add this to the TODO list. -- Bruce Momjian| http://ca

Re: [SQL] TODO List

2001-07-20 Thread Bruce Momjian
f the loop, if a certain > condition is met but I do not want to exit the loop all together. There > doesn't seem to be functionality for that right now. You want C 'continue' statement. Is that for Pl/pgSQL? -- Bruce Momjian| http://candle.pha.pa.us

Re: [SQL] Who do I make _ not a wildcard?

2001-07-29 Thread Bruce Momjian
r for the string. > > > > ---(end of broadcast)----------- > TIP 4: Don't 'kill -9' the postmaster > -- Bruce Momjian| http://candle.pha.pa.us [EMAIL PROTECTED] | (610) 853

Re: [SQL] Fuzzy matching?

2001-07-31 Thread Bruce Momjian
ast for English > words) than soundex, and levenshtein offers an entirely different and > interesting approach. Any interest in having all three of these in the > backend? Sure. -- Bruce Momjian| http://candle.pha.pa.us [EMAIL PROTECTED] | (610

Re: [SQL] Fuzzy matching?

2001-07-31 Thread Bruce Momjian
> See /contrib/soundex. -- Bruce Momjian| http://candle.pha.pa.us [EMAIL PROTECTED] | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup.| Drexel Hill, Pennsylvania 19026 --

Re: [SQL] where'd the spaces come from

2001-08-02 Thread Bruce Momjian
x27; || to_char(12,'x000') || ']'; > ?column? > -- > [x 012] > > If you're running the current version, might be worth posting a bug report. > You can work around it with something like: > > ... substr(to_char(t.tnumber,&#x

Re: [SQL] where'd the spaces come from

2001-08-03 Thread Bruce Momjian
(1 row) > > The 'FM' removes the space. So the FM is the correct way to do this, right? There is no bug? -- Bruce Momjian| http://candle.pha.pa.us [EMAIL PROTECTED] | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue

Re: [SQL] optimizing select ... not in (select ...)

2001-08-13 Thread Bruce Momjian
nsubscribe commands go to [EMAIL PROTECTED] > -- Bruce Momjian| http://candle.pha.pa.us [EMAIL PROTECTED] | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup.| Drexel Hill, Pennsylvania 19026

Re: [SQL] Temp tables being written to disk. Avoidable?

2001-08-15 Thread Bruce Momjian
the logical place, right? I don't see a huge advantage of putting it in memory. We could prevent WAL writes for temp tables. That would help. -- Bruce Momjian| http://candle.pha.pa.us [EMAIL PROTECTED] | (610) 853-3000 + If your li

Re: [SQL] Sql

2001-08-30 Thread Bruce Momjian
> Could you help me? > > Thanks for your attention. > > Marcia Cunha > Belo Horizonte , Brasil. > -- Bruce Momjian| http://candle.pha.pa.us [EMAIL PROTECTED] | (610) 853-3000 + If your life is a hard drive, | 830 Bly

Re: [SQL] [HACKERS] [GENERAL] getting the oid for a new tuple in a BEFORE

2001-09-04 Thread Bruce Momjian
hack) to get the oid the newly > > inserted tuple will receive? > > Just set t_data->t_oid = newoid() - this is what backend does > in heapam.c:heap_insert(). Does that work? Doesn't that get overwritten when the actual INSERT happens? -- Bruce Momjian

Re: [SQL] temporary views

2001-10-04 Thread Bruce Momjian
; "Table xxx with oid xxx doesn't exist" Just name your temporary table the same name in every session. Why bother with a view. -- Bruce Momjian| http://candle.pha.pa.us [EMAIL PROTECTED] | (610) 853-3000 + If your life is a

Re: [SQL] autoincrement

2001-10-25 Thread Bruce Momjian
?" > > Thanks a lot. > > -- > green > [http://www.extrasy.net] > > ---(end of broadcast)--- > TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED] > -- Bruce Momjian| http

[SQL] Sorry for blocking email

2001-11-01 Thread Bruce Momjian
My spam filter was misconfigured and I bounced back some messages I shouldn't have. Sorry. -- Bruce Momjian| http://candle.pha.pa.us [EMAIL PROTECTED] | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ c

Re: [SQL] VARCHAR vs TEXT

2001-10-16 Thread Bruce Momjian
> >>>>> "BM" == Bruce Momjian <[EMAIL PROTECTED]> writes: > > BM> CHAR() is best when storing strings that are usually the > BM> same length. VARCHAR() is best when storing variable-length strings, > BM> but you want to li

Re: [SQL] VARCHAR vs TEXT

2001-10-16 Thread Bruce Momjian
than duplicating the information. > > Frank > > At 08:56 AM 10/16/01 -0400, you wrote: > >> >>>>> "BM" == Bruce Momjian <[EMAIL PROTECTED]> writes: > >> > >> BM> CHAR() is best when storing strings that are usually the >

Re: [SQL] temporary views

2001-10-05 Thread Bruce Momjian
> Bruce Momjian wrote: > > > > > Hi > > > I have simple question: How to create view on a temporary table? > > > I need this, because pl/pgsql function returns data via temporary table. > > > > > > View created on a temporary table is usefu

Re: [SQL] temporary views

2001-10-07 Thread Bruce Momjian
> Peter Eisentraut <[EMAIL PROTECTED]> writes: > > Bruce Momjian writes: > >> * Allow views on temporary tables to behave as temporary views > > > I don't think this is a good idea. Especially since our temp tables are > > allowed to shadow persistent

Re: [SQL] temporary views

2001-10-08 Thread Bruce Momjian
> Bruce Momjian wrote: > > > > We can handle the temp views thing two ways, either allow views to map > > to temp tables by name, or allow temp views to map to temp tables that > > exist at creation time and drop the views on session exit. The original > >

Re: [SQL] EXISTS Keyword

2001-10-03 Thread Bruce Momjian
> Hello! > > I vaguely remember that someone said somewhere that > EXISTS runs faster than IN: > > SELECT * FROM table1 where field1 EXISTS (SELECT > field4 FROM table2) Move field1 into the subquery and join it to table2. See the FAQ for an example.

Re: [SQL] Server crash caused by CHECK on child

2001-10-11 Thread Bruce Momjian
> -- a developer. > -- > -- Regards, > -- Baldvin > -- > > > > ---(end of broadcast)--- > TIP 3: if posting/reading through Usenet, please send an appropriate > subscribe-nomail command to [EMAIL PROTECTED] so that your > message can get thr

Re: [SQL] VARCHAR vs TEXT

2001-10-13 Thread Bruce Momjian
same length. VARCHAR() is best when storing variable-length strings, but you want to limit how long a string can be. TEXT is for strings of unlimited length, maximum 1 gigabyte. BYTEA is for storing binary data, particularly values that include NULL bytes. -- Bruce Momjian

Re: [SQL] Which one is faster?

2002-06-20 Thread Bruce Momjian
Jan Wieck wrote: > Bruce Momjian wrote: > > > > Wei Weng wrote: > > > Between Using Limit P, S or using a cursor to start from FETCH ABSOLUTE > > > S and FETCH NEXT for P times, which one is faster? > > > > LIMIT is faster because it doesn't

Re: [SQL] variance aggregate function incorrect? Reference Materials

2002-06-24 Thread Bruce Momjian
sure if it is the right number or not. Have you tried taking the square root and see if that number is correct. The docs say: The variance is the square of the standard deviation. The supported data types and result types are the same as for standard deviation. --

Re: [SQL] Localization

2002-07-03 Thread Bruce Momjian
essages localization in 7.2. Not sure how to enable it. -- Bruce Momjian| http://candle.pha.pa.us [EMAIL PROTECTED] | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup.| Drexel H

Re: [SQL] Selecting data from a table created in another database...

2002-07-03 Thread Bruce Momjian
gt; Can I do this in postgres? > > I'm using version 7.2 on a redhat server... Sorry, you can't do cross-db queries with PostgreSQL. Take a look at /contrib/dblink as an option. -- Bruce Momjian| http://candle.pha.pa.us [EMAIL PROTECTED] | (61

Re: [SQL] Possible Bug regarding temp tables (sql or psql?)

2002-07-04 Thread Bruce Momjian
f an emergency, my ass can be used as a flotation > device. - Bender > > > > ---(end of broadcast)--- > TIP 3: if posting/reading through Usenet, please send an appropriate > subscribe-nomail command to [EMAIL PROTECTED] so that

Re: [SQL] Possible Bug regarding temp tables (sql or psql?)

2002-07-05 Thread Bruce Momjian
It works, but only in CVS, not in 7.2.X. Marking something as done in TODO only means it is done and will be in the _next_ release. Sorry. --- Mark Frazer wrote: > > > Bruce Momjian <[EMAIL PROTECTED]>

Re: [SQL] How do i return a dataset from a stored procedure

2002-07-05 Thread Bruce Momjian
ql.org). 7.3 will have better docs on using it but you can see them now in the developers docs: http://developer.postgresql.org/docs/postgres/plpgsql-cursors.html See the bottom of that page for examples. -- Bruce Momjian| http://candle.pha.pa.us [EMAIL P

Re: [SQL]

2002-07-09 Thread Bruce Momjian
the cached function contents still point to the old temporary table. The solution is to use EXECUTE for temporary table access in PL/PgSQL. This will cause the query to be reparsed every time. -- Bruce Momjian| http://candle.pha.pa.us [EMAIL PROTECTED]

  1   2   3   4   >