New FAQ questions. minor fixes
New FAQ questions. minor fixes
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Added a new question about sorting with a NULL. Also some minor cleanups, especially in regards to some of the http links: is some automatic tool messing these up somehow? (many had spaces and odd breaks in the middle) - -- Greg Sabino Mullane greg@turnstep.com PGP Key: 0x14964AC8 200502222021 http://biglumber.com/x/web?pk=2529DF6AB8F79407E94445B4BC9B906714964AC8 -----BEGIN PGP SIGNATURE----- iD8DBQFCG9qnvJuQZxSWSsgRAnNXAKC8gPJ3m3kuHjfUZxOTLPGqDZ/S6ACguXQT vKrfqPdiL1yZ9HHt8j0tRBc= =9cAH -----END PGP SIGNATURE-----
Re: New FAQ questions. minor fixes
Greg Sabino Mullane wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
>
> Added a new question about sorting with a NULL. Also some minor
> cleanups, especially in regards to some of the http links: is
> some automatic tool messing these up somehow? (many had spaces
> and odd breaks in the middle)
The original is actually in HTML in doc/src/FAQ/FAQ.html. I made the
modifications you suggested in the patch and am attaching the diff.
One problem is wrapping of URL's. Most are fixed now but I saw at least
on that is still wrapped in the text version. I use this command for
the HTML to text conversion:
lynx -force_html -dont_wrap_pre -dump -hiddenlinks=ignore -nolist "$@"
Any ideas on how that can be improved?
--
Bruce Momjian | http://candle.pha.pa.us
pgman@candle.pha.pa.us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
Index: FAQ.html
===================================================================
RCS file: /cvsroot/pgsql/doc/src/FAQ/FAQ.html,v
retrieving revision 1.288
retrieving revision 1.291
diff -c -c -r1.288 -r1.291
*** FAQ.html 15 Feb 2005 04:35:37 -0000 1.288
--- FAQ.html 25 Feb 2005 00:45:30 -0000 1.291
***************
*** 10,16 ****
alink="#0000ff">
Frequently Asked Questions (FAQ) for PostgreSQL
! Last updated: Mon Feb 14 23:35:09 EST 2005
Current maintainer: Bruce Momjian (pgman@candle.pha.pa.us)
--- 10,16 ----
alink="#0000ff">
Frequently Asked Questions (FAQ) for PostgreSQL
! Last updated: Thu Feb 24 19:45:40 EST 2005
Current maintainer: Bruce Momjian (pgman@candle.pha.pa.us)
***************
*** 85,91 ****
searches and case-insensitive regular expression searches? How do I
use an index for case-insensitive searches?
4.9) In a query, how do I detect if a field
! is NULL?
4.10) What is the difference between the
various character types?
4.11.1) How do I create a
--- 85,92 ----
searches and case-insensitive regular expression searches? How do I
use an index for case-insensitive searches?
4.9) In a query, how do I detect if a field
! is NULL? How can I sort on whether a field is
! NULL or not?
4.10) What is the difference between the
various character types?
4.11.1) How do I create a
***************
*** 162,168 ****
PostgreSQL Data Base Management System
Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
! Portions Copyright (c) 1994-6 Regents of the University of California
Permission to use, copy, modify, and distribute this software
and its documentation for any purpose, without fee, and without a
--- 163,169 ----
PostgreSQL Data Base Management System
Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
! Portions Copyright (c) 1994-1996 Regents of the University of California
Permission to use, copy, modify, and distribute this software
and its documentation for any purpose, without fee, and without a
***************
*** 206,212 ****
1.4) Where can I get PostgreSQL?
The primary anonymous ftp site for PostgreSQL is ftp://ftp.PostgreSQL.org/pub.
For mirror sites, see our main web site.
1.5) Where can I get support?
--- 207,213 ----
1.4) Where can I get PostgreSQL?
The primary anonymous ftp site for PostgreSQL is ftp://ftp.PostgreSQL.org/pub/.
For mirror sites, see our main web site.
1.5) Where can I get support?
***************
*** 225,232 ****
(#postgresqlfr). There is also a PostgreSQL channel on EFNet.
A list of commercial support companies is available at http://techdocs.postg
! resql.org/companies.php.
1.6) How do I submit a bug report?
--- 226,233 ----
(#postgresqlfr). There is also a PostgreSQL channel on EFNet.
A list of commercial support companies is available at
! http://techdocs.postgresql.org/companies.php.
1.6) How do I submit a bug report?
***************
*** 235,241 ****
http://www.postgresql.org/support/submitbug.
Also check out our ftp site ftp://ftp.PostgreSQL.org/pub to
see if there is a more recent PostgreSQL version.
1.7) What is the latest release?
--- 236,242 ----
http://www.postgresql.org/support/submitbug.
Also check out our ftp site ftp://ftp.PostgreSQL.org/pub/ to
see if there is a more recent PostgreSQL version.
1.7) What is the latest release?
***************
*** 411,417 ****
href="http://www.php.net">http://www.php.net) is an excellent
interface.
! For complex cases, many use the Perl and CGI.pm or mod_perl.
2.3) Does PostgreSQL have a graphical user
interface?
--- 412,419 ----
href="http://www.php.net">http://www.php.net) is an excellent
interface.
! For complex cases, many use the Perl and DBD::Pg with CGI.pm or
! mod_perl.
2.3) Does PostgreSQL have a graphical user
interface?
***************
*** 421,430 ****
href="http://www.pgadmin.org">http://www.pgadmin.org, PgAccess
http://www.pgaccess.org),
RHDB Admin (http://sources.redhat.com/rhd
! b/ ), TORA (http://www.globecom.net/tora/,
! partly commercial), and Rekall (
http://www.rekallrevealed.org/). There is also PhpPgAdmin (
--- 423,431 ----
href="http://www.pgadmin.org">http://www.pgadmin.org, PgAccess
http://www.pgaccess.org),
RHDB Admin (http://sources.redhat.com/rhdb/
! ), TORA (
! http://www.globecom.net/tora/, partly commercial), and Rekall (
http://www.rekallrevealed.org/). There is also PhpPgAdmin (
***************
*** 815,825 ****
4.9) In a query, how do I detect if a field
! is NULL?
You test the column with IS NULL and IS
NOT NULL.
4.10) What is the difference between the
various character types?
--- 816,844 ----
4.9) In a query, how do I detect if a field
! is NULL? How can I sort on whether a field is
! NULL or not?
You test the column with IS NULL and IS
NOT NULL.
+
+ SELECT *
+ FROM tab
+ WHERE col IS NULL;
+
+
+ To sort by the NULL status, use the IS NULL
+ and IS NOT NULL modifiers in your WHERE clause.
+ Things that are true will sort higher than things that are false,
+ so the following will put NULL entries at the top of the resulting list:
+
+
+ SELECT *
+ FROM tab
+ ORDER BY (col IS NOT NULL)
+
+
4.10) What is the difference between the
various character types?
Re: New FAQ questions. minor fixes
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 > The original is actually in HTML in doc/src/FAQ/FAQ.html. I made the > modifications you suggested in the patch and am attaching the diff. Thank you - I could not remember which was the chicken and which was the egg :) but I will diff the HTML next time. > One problem is wrapping of URL's. Most are fixed now but I saw at least > on that is still wrapped in the text version. I use this command for > the HTML to text conversion: > > lynx -force_html -dont_wrap_pre -dump -hiddenlinks=ignore -nolist "$@" > > Any ideas on how that can be improved? Not off the top of my head, but I will play around with it. Worse comes to worse, we can manually clean it up or make a quick perl script to clean up after lynx. - -- Greg Sabino Mullane greg@turnstep.com PGP Key: 0x14964AC8 200502242209 http://biglumber.com/x/web?pk=2529DF6AB8F79407E94445B4BC9B906714964AC8 -----BEGIN PGP SIGNATURE----- iD8DBQFCHpbpvJuQZxSWSsgRAud1AJ0QE6FkSp1vfULmMnW+4noTWSzaewCePl69 4/Dx6NZ6dWs1va8dMVE4mEQ= =5wfa -----END PGP SIGNATURE-----
Re: New FAQ questions. minor fixes
Greg Sabino Mullane wrote: [ There is text before PGP section. ] > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > > > The original is actually in HTML in doc/src/FAQ/FAQ.html. I made the > > modifications you suggested in the patch and am attaching the diff. > > Thank you - I could not remember which was the chicken and which was > the egg :) but I will diff the HTML next time. Yea, the FAQ's master is HTML, and the TODO's master is a text file. > > One problem is wrapping of URL's. Most are fixed now but I saw at least > > on that is still wrapped in the text version. I use this command for > > the HTML to text conversion: > > > > lynx -force_html -dont_wrap_pre -dump -hiddenlinks=ignore -nolist "$@" > > > > Any ideas on how that can be improved? > > Not off the top of my head, but I will play around with it. Worse comes > to worse, we can manually clean it up or make a quick perl script to clean > up after lynx. True. -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073