Re: [GENERAL] A creepy story about dates. How to prevent it?

2003-06-19 Thread nolan
es 10/05/1582 - 10/14/1582 as missing dates. Dates entered in that range via to_date will be stored as 10/15/1582. -- Mike Nolan ---(end of broadcast)--- TIP 9: the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match

Re: [GENERAL] [pgsql-advocacy] interesting PHP/MySQL thread

2003-06-22 Thread nolan
3-4 seconds are now taking 10-12 seconds. (Have others noticed that 7 seconds seems to be a threshold point for users reacting to query times?) MySQL also does case independent text comparisions, and apparently ONLY case-insensitive comparisons. -- Mike Nolan ---

Re: [GENERAL] [pgsql-advocacy] interesting PHP/MySQL thread

2003-06-22 Thread nolan
I want case insensitivity, I'll WRITE IT INTO THE CODE, but I can see how some people might think that 'NOLAN', 'Nolan' and 'nolan' should be considered as the same data. BTW, I just tested it and MySQL does case folding on values in unique indexes, too. (Well

Re: [GENERAL] [pgsql-advocacy] interesting PHP/MySQL thread

2003-06-22 Thread nolan
play with this before the CIO figures out I'm done. :-) I'm hoping this turns out to be a tuning issue, as I'm still very much of a rookie at tuning PostgreSQL. I'll see if I can work something up. Should this go to the general list or somewhere else? -- Mike No

Re: [GENERAL] [pgsql-advocacy] interesting PHP/MySQL thread

2003-06-22 Thread nolan
> > Personally, if I want case insensitivity, I'll WRITE IT INTO THE CODE, > > but I can see how some people might think that 'NOLAN', 'Nolan' and > > 'nolan' should be considered as the same data. > > Oh, you mean like "SELECT

[GENERAL] MySQL/PG search times

2003-06-23 Thread nolan
> We require ~* syntax for that, or upper()/lower(). Slowly the light dawns! If I anchor a ~ search on both ends, it is the same search as =. Duh! I converted the prototype over to use ~ and it is running much faster. I'll try to do some detailed timings against MySQL tonight. -- Mi

Re: [GENERAL] [pgsql-advocacy] Documentation quality WAS: interesting PHP/MySQL thread

2003-06-24 Thread nolan
ee book projects (two textbooks and one rule book), in all three case the authors did their own index. Maybe I've just had a good run of luck on the O'Reilly books I've bought, or maybe I haven't bought as many of them in the last three or four years as I used to. -- Mike Nolan

[GENERAL] Tables larger than 1GB

2003-07-04 Thread nolan
as well? Are there any conditions under which this would cause problems? -- Mike Nolan ---(end of broadcast)--- TIP 8: explain analyze is your friend

Re: [GENERAL] Are you frustrated with PostgreSQL

2003-07-15 Thread nolan
e stretch by then. :-) -- Mike Nolan ---(end of broadcast)--- TIP 4: Don't 'kill -9' the postmaster

Re: [GENERAL] Are you frustrated with PostgreSQL

2003-07-15 Thread nolan
> In what ways is the application you are writing going to be different from > phpPgAdmin? I see it as more of a web-based application forms development engine than as a DBA tool. -- Mike Nolan ---(end of broadcast)--- TIP 7: don'

[GENERAL] dump_all/restore times?

2003-07-16 Thread nolan
database, which is on yet another system.) -- Mike Nolan ---(end of broadcast)--- TIP 8: explain analyze is your friend

[GENERAL] psql and toggles

2003-07-21 Thread nolan
Perhaps I'm missing something, but it appears that there is no way to force the 'tuples-only' toggle in psql to either state. I think the same may be true of other toggles. This creates problems when running scripts via the \i command. -- Mike Nolan ---

Re: [GENERAL] Why does it not use the index?

2003-07-21 Thread nolan
antage of the index over time and a wide range of queries, so regularly scheduled 'vacuum analyze's are desirable. What I don't know is whether there is a way pass along hints to the optimizer or to write a query to FORCE it to use an index on some part of a query despite wh

Re: [GENERAL] psql -e

2003-07-24 Thread nolan
ff, in which case I may propose several changes in the definitions and options for both the echo and output options in psql. -- Mike Nolan ---(end of broadcast)--- TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]

Re: [GENERAL] psql -e

2003-07-24 Thread nolan
. If the team would accept the rest as a bugfix, I can send it. Otherwise, I'll wait for 7.5 and see if I can change the whole output section to eliminate the problem completely. -- Mike Nolan ---(end of broadcast)--- TIP 6: Have you searc

Re: [GENERAL] optimum postgres server configuration

2003-07-24 Thread nolan
x 10 databases is getting up there for tape backup both in terms of capacity and in the time it would take to do the backup. -- Mike Nolan ---(end of broadcast)--- TIP 5: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faqs/FAQ.html

Re: [GENERAL] psql -et

2003-07-24 Thread nolan
g an option to output in XML? (This may raise a number of XML design questions, though, and I'm just starting to read 'XML in a Nutshell'.) -- Mike Nolan ---(end of broadcast)--- TIP 6: Have you searched our list archives? http://archives.postgresql.org

Re: [GENERAL] psql -e

2003-07-28 Thread nolan
e ... I am more inclined to go with the rewrite of the output sections, which I hope to jump into in mid-August. -- Mike Nolan ---(end of broadcast)--- TIP 4: Don't 'kill -9' the postmaster

Re: [GENERAL] last inserted raw (identity)

2003-08-01 Thread nolan
st record inserted was. -- Mike Nolan ---(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 through to the mailing list cleanly

Re: [GENERAL] last inserted raw (identity)

2003-08-01 Thread nolan
be higher only if I also have my own cache of sequence values, assuming that the sequence never wraps.) -- Mike Nolan ---(end of broadcast)--- TIP 7: don't forget to increase your free space map settings

Re: [GENERAL] "select count(*) from contacts" is too slow!

2003-10-07 Thread nolan
> MySQL can tell you from it's index because it doesn't care if it gives you the > right number or not. Under what circumstances would MySQL give the wrong number? -- Mike Nolan ---(end of broadcast)--- TIP 6: Have you searched o

Re: [GENERAL] Timestamp to date conversion...plz help me

2003-10-18 Thread nolan
o_char(current_timestamp,'mm/dd/yy'); gives you control over the formatting. -- Mike Nolan ---(end of broadcast)--- TIP 2: you can get off all lists at once with the unregister command (send "unregister YourEmailAddressHere" to [EMAIL PROTECTED])

Re: [GENERAL] PostgreSQL-related legal question

2015-03-11 Thread Michael Nolan
One of my sons was hired by Google last year after spending the past several years working on various open-source projects, it took 2 days of back-and-forth with Google's legal department before he was satisfied with the restrictions in their offer. -- Mike Nolan On Wed, Mar 11, 2015 at 4:

[GENERAL] Consistent state for pg_dump and pg_dumpall

2015-05-20 Thread Michael Nolan
consistent are the tables in pg_dumpall files? -- Mike Nolan

Re: [GENERAL] Consistent state for pg_dump and pg_dumpall

2015-05-20 Thread Michael Nolan
On Wed, May 20, 2015 at 12:40 PM, David G. Johnston < david.g.johns...@gmail.com> wrote: > Yes. The entire dump is performed within a single transaction. > > On Wed, May 20, 2015 at 9:24 AM, Michael Nolan wrote: > >> The documentation for pg_dump says that dum

Re: [GENERAL] alter column type

2015-06-05 Thread Michael Nolan
y. > > Cheers, > Casey > Probably too late for this time, but in the past when I've needed to redefine the type for a column, I've made a dump, edited the dump file to change the type and then renamed the table and reloaded it. That's usually several orders of magnitude faster. -- Mike Nolan no...@tssi.com

Re: [GENERAL] Average New Users Per DOW

2015-07-06 Thread Michael Nolan
hat and your original query as a subquery and do your averages, since nulls are not included in either count() or average() aggregates: select dow, count(*), avg(some_column) from ( select extract ('dow' from some_date) as dow, some_number from some_table union select generate_series(0,6) as

Re: [GENERAL] Average New Users Per DOW

2015-07-06 Thread Michael Nolan
On Mon, Jul 6, 2015 at 5:50 PM, David G. Johnston < david.g.johns...@gmail.com> wrote: > On Mon, Jul 6, 2015 at 6:16 PM, Michael Nolan wrote: > >> > But you can see it wont give correct results since (for example) >> Monday's >> > with no new user

Re: [GENERAL] Average New Users Per DOW

2015-07-06 Thread Michael Nolan
Sat 3.0000 -- Mike Nolan

Re: [GENERAL] A table of magic constants

2015-07-11 Thread Michael Nolan
t is first-rate. (I've been working on a project that requires MySQL, their documentation is far inferior.) -- Mike Nolan no...@tssi.com

Re: [GENERAL] postgres zeroization of dead tuples ? i.e scrubbing dead tuples with sensitive data.

2015-11-18 Thread Michael Nolan
ary Clinton's deleted email, recovering that data might be more valuable to some people than the data that was not deleted. -- Mike Nolan

Re: [GENERAL] Regex help again (sorry, I am bad at these)

2015-12-29 Thread Michael Nolan
far easier to write a short PHP or PERL program to do tasks like this. Much easier to debug and the speed improvement by using SQL is not important for 200,000 records. -- Mike Nolan

[GENERAL] Bypassing NULL elements in row_to_json function

2016-04-08 Thread Michael Nolan
e non-null? -- Mike Nolan no...@tssi.com -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Bypassing NULL elements in row_to_json function

2016-04-08 Thread Michael Nolan
setting them to null. -- Mike Nolan

Re: [GENERAL] Bypassing NULL elements in row_to_json function

2016-04-09 Thread Michael Nolan
make available to app developers. My next task is to find out if validating and importing a JSON file into a table is as easy as exporting a table in JSON turned out to be. Thanks for the help. -- Mike Nolan

Re: [GENERAL] Bypassing NULL elements in row_to_json function

2016-04-09 Thread Michael Nolan
o the table into which the inserts are made, an insert could fail or result in incorrect data. -- Mike Nolan

Re: [GENERAL] Bypassing NULL elements in row_to_json function

2016-04-10 Thread Michael Nolan
On Sun, Apr 10, 2016 at 2:30 AM, David G. Johnston < david.g.johns...@gmail.com> wrote: > On Sat, Apr 9, 2016 at 9:48 PM, Michael Nolan wrote: > >> >> 2nd Followup: It turns out that loading a table from a JSON string is >> more complicated than going from a t

Re: [GENERAL] Bypassing NULL elements in row_to_json function

2016-04-10 Thread Michael Nolan
| (1 row) The fact that the null values were stripped out is not an issue here. But, uscf=> insert into goldmast_test select * from json_populate_record(NULL::"goldmast_test", (select * from gold1604_test limit 2) ) uscf-> \g ERROR: more than one row returned by a subquery used as an expression Is there a way to get around the one row per subquery issue? -- Mike Nolan

Re: [GENERAL] Bypassing NULL elements in row_to_json function

2016-04-10 Thread Michael Nolan
In case it wasn't clear, the sample data was 3 rows of data. (There are actually around 890K rows in the table pgfutter built from the JSON file.) - Mike Nolan

Re: [GENERAL] Build in function to verify email addresses

2017-11-16 Thread Michael Nolan
ddress from mailing lists. Procedures to verify that an email address works and to administer its use under rules like CAN_SPAM cannot exist solely within the database itself. And as others have noted, what makes for a 'well-formed' email address has always been a bit complicated. -- Mike Nolan

[GENERAL] SOLVED: Corrupted index file after restoring WAL on warm spare server

2007-05-26 Thread Michael Nolan
bytes long. Upgrading to the current version of the GNU tar utility program fixed the problem. -- Mike Nolan

Re: [GENERAL] Corruption of files in PostgreSQL

2007-06-02 Thread Michael Nolan
e the files in BASE64 encoding to keep them from getting corrupted. -- Mike Nolan

Re: [GENERAL] Date style handling changes between 7.4.12 and 8.2.4

2007-06-12 Thread Michael Nolan
51:14 GMT+01:00'::timestamp with time zone timestamptz 2007-07-11 06:51:14-05 -- Mike Nolan On 6/12/07, Adam Witney <[EMAIL PROTECTED]> wrote: Hi, I am upgrading from 7.4.12 to 8.2.4 and I have run into a difference in date style handling...

[GENERAL] What's the logical counterpart of the to_hex function?

2007-07-16 Thread Michael Nolan
rom string/hex to integer? (If this is referenced in the documentation, I'm not finding it.) -- Mike Nolan

Re: [GENERAL] What's the logical counterpart of the to_hex function?

2007-07-17 Thread Michael Nolan
On 7/16/07, Steve Atkins <[EMAIL PROTECTED]> wrote: On Jul 16, 2007, at 11:36 AM, Michael Nolan wrote: > I have data (from an external source) which is in text format as a > hex number (it's actually an IP address, but that's probably not > relevant.) It likely is r

[GENERAL] Detailed logging, but only for one user?

2007-10-12 Thread Michael Nolan
Is there any way to enable detailed logging (ie, at the SQL statement level) but only for one user? -- Mike Nolan

Re: [GENERAL] DBMS upgrade and backups

2011-03-14 Thread Michael Nolan
;t load into a current > modern postgres install, but I think there were several major versions > gap in those cases. > I recently tried loading a pg_dump of a large database dump file (around 20 GB) from 8.2 into 9.0 and it failed. However restoring the 22GB pg_dumpall file worked. -- Mike Nolan no...@tssi.com

Re: [GENERAL] Merge rows based on Levenshtein distance

2014-12-03 Thread Michael Nolan
e which is better? -- Mike Nolan

Re: [GENERAL] Merge rows based on Levenshtein distance

2014-12-03 Thread Michael Nolan
Mike Nolan

[GENERAL] Blocking access by remote users for a specific time period

2014-12-13 Thread Michael Nolan
day access limitation parameters in the pg_hba.conf file, are there any simple ways to do this? -- Mike Nolan

Re: [GENERAL] Blocking access by remote users for a specific time period

2014-12-13 Thread Michael Nolan
Yeah, a cron job to swap pg_hba.conf files is the best solution I've come up with so far. It's not one web app, it's closer to two dozen of them, on multiple sites. -- Mike Nolan On Sat, Dec 13, 2014 at 11:10 PM, Adrian Klaver wrote: > > On 12/13/2014 08:13 PM, Michael Nol

[GENERAL] How to analyze a slowdown in 9.3.5?

2015-01-09 Thread Michael Nolan
r as I can tell, the other virtual servers weren't being slowed down, so I don't suspect problems with the virtual server or the SAN. If this happens again, what sorts of settings in postgresq.conf or other tools should I be using to try to track down what's causing this? -- Mike

Re: [GENERAL] How to analyze a slowdown in 9.3.5?

2015-01-10 Thread Michael Nolan
data so it'll be an even longer run than this week's was.) -- Mike Nolan On Sat, Jan 10, 2015 at 12:55 PM, Andy Colson wrote: > On 01/09/2015 07:52 PM, Tomas Vondra wrote: > >> On 9.1.2015 23:14, Michael Nolan wrote: >> >>> I'm running 9.3.5 on a virtual m

Re: [GENERAL] How to analyze a slowdown in 9.3.5?

2015-01-10 Thread Michael Nolan
On Fri, Jan 9, 2015 at 7:52 PM, Tomas Vondra wrote: > On 9.1.2015 23:14, Michael Nolan wrote: > > I'm running 9.3.5 on a virtual machine with 5 cores and 24 GB of > > memory. Disk is on a SAN. > > > > I have a task that runs weekly that processes possibly as many

Re: [GENERAL] How to analyze a slowdown in 9.3.5?

2015-01-11 Thread Michael Nolan
would not have been many inserts or updates to the tables used by the lookup function since the latest vacuum analyze. I think I may have even done a vacuum analyze on the two largest tables after the first DB shutdown. -- Mike Nolan

Re: [GENERAL] Re: Stuck trying to backup large database - best practice? How about a cloud service?

2015-01-12 Thread Michael Nolan
On Mon, Jan 12, 2015 at 7:46 PM, Bob Futrelle wrote: > You should be able to find a cloud provider that could give you many TB. > Or so they like to claim. > > > Nope, but you probably find one willing to SELL you access to many TB. -- Mike Nolan

Re: [GENERAL] How to analyze a slowdown in 9.3.5?

2015-01-13 Thread Michael Nolan
For what it's worth, this week's run covered even more months than last week's did, and ran in about 5 1/2 hours, with no slowdowns, under a similar system load. So, it could have been a one-time thing or some combination of factors that will be difficult to reproduce. -- Mike N

Re: [GENERAL] Temporarily suspend a user account?

2015-02-06 Thread Michael Nolan
Might not do what you want, but I just change the password. -- Mike Nolan On Fri, Feb 6, 2015 at 4:11 PM, Melvin Davidson wrote: > Possibly, > > To disble: > ALTER USER name RENAME TO xname; > > To enable > ALTER USER xname RENAME TO name; > > ??? > > > On

Re: [GENERAL] Temporarily suspend a user account?

2015-02-06 Thread Michael Nolan
On 2/6/15, David G Johnston wrote: > On Fri, Feb 6, 2015 at 2:22 PM, Michael Nolan [via PostgreSQL] < > ml-node+s1045698n5836989...@n5.nabble.com> wrote: > >> Might not do what you want, but I just change the password. >> >> > ​How do you do that and r

Re: [GENERAL] query by partial timestamp

2013-01-09 Thread Michael Nolan
2-31'::TIMESTAMP is the same as 2011-12-31 00:00:00.0 so records timestamped later in the day on the 31st would not get selected SELECT ... WHERE '2011-01-01'::TIMESTAMP <= col_of_type_timestamp AND col_of_type_timestamp < '2012-01:0

Re: [GENERAL] query by partial timestamp

2013-01-09 Thread Michael Nolan
It is probably not the most efficient, but I often use this syntax, which reads better. Select . where col_type_timestamp::date between '2011-01-01' and '2011-12-31' This will use a timestamp index. -- Mike Nolan -- Sent via pgsql-general mailing list (pgsql-genera

Re: [GENERAL] .pgpass and root: a problem

2013-02-05 Thread Michael Nolan
specifically enabled in pg_hba.conf. -- Mike Nolan

Re: [GENERAL] Money casting too liberal?

2013-03-29 Thread Michael Nolan
--- 1 And then there's this: create table wkdata (numval numeric(5,2)) CREATE TABLE Time: 6.761 ms nolan=> insert into wkdata nolan-> values (123.456789); INSERT 569625265 1 Time: 4.063 ms nolan=> select * from wkdata; select * from wkdata; numval -- 123.46 So rounding a mon

Re: [GENERAL] How large can a PostgreSQL database get?

2013-04-17 Thread Michael Nolan
stgreSQL databases for the last 10 years or so. I'd take PostgreSQL over the other two in a heartbeat! Data integrity/data preservation issues (backup is just one aspect of that) are going to be your biggest problems with VERY large databases, no matter how much money you throw at it. --

Re: [GENERAL] How to clone a running master cluster?

2013-05-11 Thread Michael Nolan
a directory files, but you probably won't need to restart the master to change the master configuration files since you've already got replication working to one server and you're apparently not planning to have the second slave server poll the master for updates. -- Mike Nolan --

Re: [GENERAL] incremental dumps

2013-08-09 Thread Michael Nolan
On 8/1/13, haman...@t-online.de wrote: > Hi, > I want to store copies of our data on a remote machine as a security > measure. > Wolfgang 2 questions: 1. How secure is the remote site? 2. How much data are we talking about? -- Mike Nolan -- Sent via pgsql-general mailing

Re: [GENERAL] incremental dumps

2013-08-11 Thread Michael Nolan
tes when the row was inserted or last updated may help. A true incremental backup would IMHO be a very useful tool for database administrators, but there are a number of technical challenges involved, especially dealing with deleted records. -- Mike Nolan -- Sent via pgsql-general mailing list (

Re: [GENERAL] question about age()

2013-08-29 Thread Michael Nolan
0 rows, why? > > > I'm using 9.2.4. What is the content of the field 'birthday''? My guess is there's a null value for the field, in which case you are comparing two nulls. -- Mike Nolan -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] question about age()

2013-08-29 Thread Michael Nolan
On 8/29/13, Michael Nolan wrote: > On 8/29/13, Andreas Kretschmer wrote: > >> I'm using 9.2.4. > > > What is the content of the field 'birthday''? My guess is there's a > null value for the field, in which case you are comparing two nulls. Oo

Re: [GENERAL] Nice to have features: Percentage function

2017-04-16 Thread Michael Nolan
I also have some pre-defined percentage functions, they check the denominator and return null if it is zero, to avoid 'divide by zero' errors. -- Mike Nolan On Sun, Apr 16, 2017 at 11:37 AM, Melvin Davidson wrote: > > > On Sun, Apr 16, 2017 at 12:23 PM, Adrian Klaver >

Re: [GENERAL] Postgres 9.6 fails to start on VMWare

2017-10-23 Thread Michael Nolan
structure the same, > but if this has corrupted the files I can drop, dump and restore, in which > case how do I ‘drop’ the DB without postgres running? > > Ta, > > Martin. > Was the server you were backing up shut down or in backup mode when you did the 'dd' copy? -- Mike Nolan

Re: [GENERAL] How to switch file systems with least downtime?

2013-09-14 Thread Michael Nolan
? -- Mike Nolan On Sat, Sep 14, 2013 at 8:32 AM, Moshe Jacobson wrote: > How do I migrate my 9.1 directory to a new file system with the least > downtime possible? > > I don't know if this makes any difference, but my pg_xlog directory is on > its own volume as well, so I would ha

Re: [GENERAL] How to failover from Primary to Standby and Set the old Primary as a new Standby

2013-09-19 Thread Michael Nolan
Assuming the database hasn't changed much since the failover, doing a fsync from the new primary back to the old primary should be fairly quick. -- Mike Nolan On 9/19/13, Vick Khera wrote: > On Thu, Sep 19, 2013 at 11:31 AM, ascot.m...@gmail.com > > wrote: > >> I use

Re: [GENERAL] How to failover from Primary to Standby and Set the old Primary as a new Standby

2013-09-19 Thread Michael Nolan
ssues that need to be resolved before putting it back online, and fixing them could affect how much work you have to do to get the physical files back in sync. -- Mike Nolan -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] pg_dumpall from a script

2013-10-23 Thread Michael Nolan
You could write a plperlul function that runs a shell script to back up your database, you can even pass it parameters and put a call to that in a trigger. BUT, this could result in multiple backups running at the same time and become a performance drag. -- Mike Nolan On Tue, Oct 22, 2013 at 9

Re: [GENERAL] Junk date getting uploaded into date field

2013-11-05 Thread Michael Nolan
the data is not proper. Try using a cast to date instead: select '33-oct-2013'::date throws an error. -- Mike Nolan -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] to_date() and invalid dates

2014-01-20 Thread Michael Nolan
Thomas, try this: '2013-02-31'::date -- Mike Nolan On Mon, Jan 20, 2014 at 7:44 AM, Thomas Kellerer wrote: > Hi, > > I asked this a while back already: > >select to_date('2013-02-31', '-mm-dd'); > > will not generate an error (unlike

Re: [GENERAL] Moving data from M$ JetDB file to Postgres on Linux

2014-03-01 Thread Michael Nolan
I think that PHP has modules (eg, PEAR) that can read MS Access database files, and once you have it in an array you can create INSERT statements for PostgreSQL, including cleaning up any data format issues (eg, dates of 00-00-) -- Mike Nolan On Fri, Feb 28, 2014 at 6:21 PM, Rich Shepard

Re: [GENERAL] Mysterious DB reset

2014-03-06 Thread Michael Nolan
line_prefix in the postgresql.conf file and reload it. I use: log_line_prefix = '%m %u ' You might also want to use this, at least temporarily: log_statement = all -- Mike Nolan -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscriptio

Re: [GENERAL] Problem with query

2014-04-11 Thread Michael Nolan
thing_id etc. I find when building complex queries (I've written some that ran over 100 lines and involved a dozen or more joined tables), I need to build them up, testing them as I build. -- Mike Nolan -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make ch

Re: [GENERAL] SSDs with Postgresql?

2011-04-26 Thread Michael Nolan
L files, each 16MB. That's about 1.2 gigabytes for a database that takes up about 58 GB. -- Mike Nolan

Re: [GENERAL] PHP and PostgreSQL 9.0, pg_connect fails to connect

2011-04-27 Thread Michael Nolan
fighting SELInux every inch of the way. Setting up PostgreSQL on that box is coming up on the schedule, maybe forewarned is forearmed. :-) -- Mike Nolan

Re: [GENERAL] Query to return every 1st Sat of a month between two dates

2011-05-11 Thread Michael Nolan
ate_series(0,1095) as s(a) where to_char('2011-01-01'::date+s.a,'dd') between '01' and '07' and to_char('2011-01-01'::date+s.a,'dy') = 'sat' -- Mike Nolan

[GENERAL] postgresql and encfs?

2011-06-22 Thread Michael Nolan
testing it to see if performance is going to be a major concern. -- Mike Nolan no...@tssi.com

Re: [GENERAL] postgresql and encfs?

2011-06-22 Thread Michael Nolan
On Wed, Jun 22, 2011 at 3:48 PM, Tom Lane wrote: > Michael Nolan writes: > > Has anyone successfully used encfs with postgresq recently? > > > PANIC: could not open file "pg_xlog/00010009000D" (log file > 9, > > segment 13): Invalid argume

[GENERAL] An amusing MySQL weakness--not!

2011-06-25 Thread Michael Nolan
amused. PostgreSQL reports this as an error, of course. -- Mike Nolan no...@tssi.com

Re: [GENERAL] Contrib source

2011-06-30 Thread Michael Nolan
always just built everything from the source code. -- Mike Nolan no...@tssi.com

Re: [GENERAL] Performance Monitoring of PostGRE

2011-07-06 Thread Michael Nolan
n a linux kernel. sar doesn't tell you a lot about what postgres is up to. -- Mike Nolan no...@tssi.com

Re: [HACKERS] [GENERAL] Creating temp tables inside read only transactions

2011-07-10 Thread Michael Nolan
e database, even if that is what schemas are for. The ability to do cross-database (most likely cross-server as well) queries would address a lot of real-world problems. - Mike Nolan no...@tssi.com

Re: [GENERAL] Slow query with sub-select

2011-07-16 Thread Michael Nolan
2011/7/16 - - > > The weird thing is that before I updated my server the query was about 5 > times faster. > Updated it from what to what, and how? -- Mike Nolan no...@tssi.com

Re: [GENERAL] streaming replication does not work across datacenter with 20ms latency?

2011-07-25 Thread Michael Nolan
! > > AFAIK there's no way to find out which compiler was used to build > PostgreSQL binaries You can do a strings on a binary file (eg, postmaster) and search for GCC in the output. -- Mike Nolan

[GENERAL] Suggested enhancement to pg_restore

2011-07-26 Thread Michael Nolan
-table=xyz_copy would restore a copy of table xyz into the existing (and presumably empty) table xyz_copy, leaving table xyz untouched. -- Mike Nolan no...@tssi.com

Re: [GENERAL] Suggested enhancement to pg_restore

2011-07-27 Thread Michael Nolan
On Tue, Jul 26, 2011 at 6:10 PM, Chris Travers wrote: > On Tue, Jul 26, 2011 at 3:48 PM, Michael Nolan wrote: > > I suggest adding the following parameter to pg_restore: > > > > --rename-table= > > > > When used in conjunction with the --data-only, --schema a

[GENERAL] using xmin in a query?

2011-07-28 Thread Michael Nolan
nteger, nor can you cast an integer to an xid. The only way I can get this to work is: select count(*) from tablename where not xmin = 2 That seems pretty obscure. -- Mike Nolan no...@tssi.com

Re: [GENERAL] using xmin in a query?

2011-07-28 Thread Michael Nolan
On Thu, Jul 28, 2011 at 12:23 PM, Andy Colson wrote: > On 7/28/2011 11:40 AM, Michael Nolan wrote: > >> Why does this query succeed: >> >> select count(*) from tablename where xmin = 2 >> >> while this query fails: >> >> select count(*) from tab

Re: [GENERAL] using xmin in a query?

2011-07-28 Thread Michael Nolan
On Thu, Jul 28, 2011 at 2:27 PM, Tom Lane wrote: > Michael Nolan writes: > > Why does this query succeed: > > select count(*) from tablename where xmin = 2 > > > while this query fails: > > > select count(*) from tablename where xmin != 2 > > It told you w

Re: [GENERAL] using xmin in a query?

2011-07-28 Thread Michael Nolan
On Thu, Jul 28, 2011 at 5:09 PM, Tom Lane wrote: > Michael Nolan writes: > > It seems like we're being inconsistent here in allowing 'where xid = > > integer' but not allowing 'where xid != integer'. > > Well, if you look into pg_operator you'

Re: [GENERAL] using xmin in a query?

2011-07-28 Thread Michael Nolan
On Thu, Jul 28, 2011 at 5:36 PM, Tom Lane wrote: > Michael Nolan writes: > > It also appears you cannot group on a column of type xid. > > You can in 8.4 and up. Previous versions only know how to GROUP BY > sortable columns, which requires a btree opclass, which xid doesn&#

Re: [GENERAL] securing the sql server ?

2011-08-22 Thread Michael Nolan
s being stored on a 500 GB external hard drive connected via USB2 to an HP laptop running Linux Fedora 15. I found that the encrypted database ran 15-20% slower on PostgreSQL 9.0.4 on most queries. -- Mike Nolan

Fwd: [GENERAL] Disable Streaming Replication without restarting either master or slave

2012-05-29 Thread Michael Nolan
-- Forwarded message -- From: Michael Nolan Date: Tue, May 29, 2012 at 1:37 PM Subject: Re: [GENERAL] Disable Streaming Replication without restarting either master or slave To: Fujii Masao On Tue, May 29, 2012 at 1:15 PM, Fujii Masao wrote: > On Tue, May 29, 2012 at 10

  1   2   3   >