Re: [HACKERS] Nothing larger then int8?

2001-01-17 Thread Alex Pilosov
To answer your question, wouldn't numeric(30,0) be the correct? -alex On Thu, 18 Jan 2001, The Hermit Hacker wrote: > > hrrmm ... ignore this ... I'm suspecting that what I did was copied in > sum() data from an old table that had bytes declared as int4, without > cas

Re: [HACKERS] pg_shadow.usecatupd attribute

2001-01-23 Thread Alex Pilosov
Just to clarify for stupid me: you want to remove it and forbid catalog updates or remove it and allow catalog updates? (I hope its latter :) On Tue, 23 Jan 2001, Tom Lane wrote: > Peter Eisentraut <[EMAIL PROTECTED]> writes: > > While I'm at it and before I forget the 76 places one needs to edi

Re: [HACKERS] TODO list: Allow Java server-side programming

2001-02-02 Thread Alex Pilosov
On Fri, 2 Feb 2001, tomasz konefal wrote: > could someone please clarify what "Allow Java > server-side programming" actually means? what are the > limitations of using java and jdbc with pgsql? It means to embed Java interpreter inside postgres, and allow writing stored procedures and trigge

Re: [HACKERS] TODO list: Allow Java server-side programming

2001-02-03 Thread Alex Pilosov
ible, I think both of these bindings are two-way (you can go perl-java-perl-java). Might be worth a quick try? -alex

Re: [HACKERS] Should I look elsewhere??

2001-02-05 Thread Alex Pilosov
post the rest of the traceback. 0x40* is the address inside some shared library, most likely libc. full traceback will show what happened before it got to libc -alex On Mon, 5 Feb 2001, Mathieu Dube wrote: > So... > If after recompiling postgres with -g in the CFLAGS and still g

Re: [HACKERS] Plan for straightening out the include-file mess

2001-02-08 Thread Alex Pilosov
On Thu, 8 Feb 2001, Alex Pilosov wrote: > Great! :) > > It might also clean up something that I've been fighting against for > awhile: when I include files needed for SPI, it drags also a lot of other > garbage in, which conflicts with other things (namely, tryin

Re: [HACKERS] Plan for straightening out the include-file mess

2001-02-08 Thread Alex Pilosov
On Thu, 8 Feb 2001, Tom Lane wrote: > Alex Pilosov <[EMAIL PROTECTED]> writes: > > when I include files needed for SPI, it drags also a lot of other > > garbage in, which conflicts with other things (namely, trying to get a > > file to simultaneously include SPI and

Re: [HACKERS] Plan for straightening out the include-file mess

2001-02-12 Thread Alex Pilosov
nditionally on that being defined. -alex On Thu, 8 Feb 2001, Tom Lane wrote: > I have been looking at making a split between client-side and server-side > include files as we discussed earlier this week (pghackers thread > "Include files for SPI are not installed", if you miss

RE: [HACKERS] Proposed WAL changes

2001-03-07 Thread Alex Pilosov
On Wed, 7 Mar 2001, Mikheev, Vadim wrote: > But what can be done if fsync returns before pages flushed? No, it won't. When fsync returns, data is promised by the OS to be on disk. -alex ---(end of broadcast)--- TIP 6: Have you searched

[HACKERS] Postgres and 'directio' on Solaris/UFS

2003-02-21 Thread alex avriette
references to Zend. Additionally, I grepped through source only to realize that "direction" is used a lot. So I used the following find : [goro:~/postgresql-7.3.1] alex% find . -type f -exec egrep -il 'directio[^Nn]' {} \; And also didn't find anything. The manpage for directi

Re: [HACKERS] Reducing likelihood of deadlocks (was referential Integrity and SHARE locks)

2007-02-14 Thread Alex Hayward
On Tue, 13 Feb 2007, Marc Munro wrote: > On Mon, 2007-12-02 at 00:10 -0500, Tom Lane wrote: > > Marc Munro <[EMAIL PROTECTED]> writes: > > > Consider a table C containing 2 child records C1 and C2, of parent P. > > > If transaction T1 updates C1 and C2, the locking order of the the > > > records w

[HACKERS] createdb failed

2004-11-30 Thread alex yap
27; Error: could not initialize database directory; delete failed as well detail : failing system command was : cp -r '/var/postgresql/data/base/1' '/var/postgresql/data/base/17147'   please anyone 'master' here help , my deadline is near.. please.   alex     Do you Yahoo!? Yahoo! Mail - Helps protect you from nasty viruses.

[HACKERS] ascii to character conversion in postgres

2000-09-16 Thread Alex Sokoloff
Postgres has an 'ascii' function that converts characters to ascii, values, but it appears to be a one way street. I can't find a way to convert ascii values to characters, like 'chr' in Oracle. Anyone know how to do this? -Alex __

Re: [HACKERS] ascii to character conversion in postgres

2000-09-18 Thread Alex Sokoloff
Best, Alex --- Tom Lane <[EMAIL PROTECTED]> wrote: > > New proposal: forget ichar(), give the function two > entries chr() and > char(). > > regards, tom lane __ Do You Yahoo!? Yahoo! Mail - Free email

[HACKERS] char* to Datum conversion

2000-09-19 Thread Alex Guryanow
Hi, How can I convert char* to Datum to pass a string to the SPI_modifytuple function? regards, Alex

Re: [HACKERS] Patch for TNS services

2000-10-07 Thread Alex Pilosov
... -alex On Tue, 12 Sep 2000, Bruce Momjian wrote: > Sounds like people want it. Can you polish it off, add SGML docs and > send it over? > > > -BEGIN PGP SIGNED MESSAGE- > > > > Last week I created a patch for the Postgres client side libraries to allow &

[HACKERS] inheritance/oid questions

2000-10-07 Thread Alex Pilosov
Suppose I have table a and b (b inherits a). Then I do select * from a*; Now, I'd like to know which table this particular row came from (a or b). Is this possible? Or do I have to have a column where I'd store what kind of object this is? -alex

[HACKERS] inheritance question 2/ref integrity

2000-10-07 Thread Alex Pilosov
Can I do following? create table foo ( x int4 references bar* ) Or, since 7.1 will have bar* as default for bar, will using 'references bar' do what I want? -alex

Re: [HACKERS] What's happening with pgsql-committers?

2000-10-07 Thread Alex Pilosov
other hand, locking of that kind will be unnecessary for postgres, so it can return fd of some file in /tmp... There's an attempt to do this at http://www.is.kiruna.se/~goran/ldap/arkiv/ but its very raw and not configurable. -alex

[HACKERS] newbieish exception/multilevel transactions

2000-10-08 Thread Alex Pilosov
exception in plpgsql? [I would assume that depends on SPI ability to trap exceptions...] These features are really needed for people who do serious database-backend scripting, to compete with sybase (who has multilevel transactions) and oracle (who has very good exception handling). Thank you -alex

[HACKERS] bug: alter table/FK

2000-10-17 Thread Alex Pilosov
ds to be done: on alter table, update tgargs in pg_trigger table -alex

[HACKERS] time stops within transaction

2000-10-17 Thread Alex Pilosov
y fmgr. Is there a way to declare functions 'not-cacheable-ever'? If there is, such should be applied to now(). -alex

[HACKERS] time stops/workaround

2000-10-17 Thread Alex Pilosov
Strangely, the same thing does not happen when I do timenow() instead of time(). This is very counter-intuitive, if this is the way it is supposed to work, at least docs should be saying that. Also, I checked, and its probably not the fmgr cache, since now() is set to be noncacheable... -alex

Re: [HACKERS] time stops within transaction

2000-10-18 Thread Alex Pilosov
called from some outer statement, so > advancing now() within the function would violate the spec constraint > with respect to the outer statement. Postgres doesn't have an idea of what a 'top-level' statement is? I.E. statement as submitted by a client (libpq)? -alex

[HACKERS] relation ### modified while in use

2000-10-22 Thread Alex Pilosov
. What causes this? I'm having a feeling that it has to do with referential integrity (the table in question is referenced by almost every other table), and with [possibly] a leak of reference counts? This is all with pg7.0.2 on i386. -alex

Re: [HACKERS] relation ### modified while in use

2000-10-22 Thread Alex Pilosov
I think this happens after I create/modify tables which reference this table. This is spontaneous, and doesn't _always_ happen... Anything I could do next time it craps up to help track the problem down? -alex CREATE TABLE "customers" ( "cust_id&q

Re: [HACKERS] relation ### modified while in use

2000-10-22 Thread Alex Pilosov
On Mon, 23 Oct 2000, Tom Lane wrote: > when done, but it will deadlock if SELECT does not release that lock. > > That's annoying but I see no way around it, if we are to allow > concurrent transactions to do schema modifications of tables that other > transactions are using. I might be in above

Re: [HACKERS] relation ### modified while in use

2000-10-22 Thread Alex Pilosov
On Mon, 23 Oct 2000, Alex Pilosov wrote: > On Mon, 23 Oct 2000, Tom Lane wrote: > > > when done, but it will deadlock if SELECT does not release that lock. > > > > That's annoying but I see no way around it, if we are to allow > > concurrent transactions t

Re: [HACKERS] relation ### modified while in use

2000-10-22 Thread Alex Pilosov
but it will deadlock if SELECT does not release that lock. Probably a silly question, but since this is the same transaction, couldn't the lock be 'upgraded' without a problem? Or postgres doesn't currently have idea of lock upgrades...? -alex

Re: [HACKERS] Summary: what to do about INET/CIDR

2000-10-27 Thread Alex Pilosov
when I start straightening out my network equipment tables...;) -alex

Re: [HACKERS] Summary: what to do about INET/CIDR

2000-10-27 Thread Alex Pilosov
On Fri, 27 Oct 2000, Larry Rosenman wrote: > and network(cidr) should print ONLY the octets, not the mask... Agreed. There's a function to get the mask size, and the network should just return the network. Otherwise, it is impossible to use. -alex

Re: [HACKERS] pg_autovacuum next steps

2004-03-22 Thread Alex J. Avriette
, but I really need to have more flexibility or we are going to (read: I will be tasked with) be writing our own. Sorry for the terseness -- and I haven't had a chance to go over the whole thread; we're moving from 7.3.2 to 7.4.2 on "the big database" this week. Alex -- [

Re: [HACKERS] pg_autovacuum next steps

2004-03-22 Thread Alex J. Avriette
were just if it was ready, and how or if it should change when it goes in. It is very simple code, I'm not sure what is "not ready" about it. If people don't want to use it, they don't have to. Many databases can go days to weeks without vacuuming. alex -- [EMAIL PROTECT

[HACKERS] feature request: \qf datatype

2003-12-25 Thread Alex J. Avriette
ven found the \df macro. However, the C stuff was beyond my ability. Hopefully, this is a direct "clone \df" item. I really think this would be useful for people who haven't yet becomes familiar with postgres' (very rich) function base. Hm. On second thought, \qf is a bad n

Re: [HACKERS] feature request: \qf datatype

2003-12-26 Thread Alex J. Avriette
ses. Duplication of help systems that are never going to be used is a waste of everyone's time. Alex -- [EMAIL PROTECTED] Alex J. Avriette, Unix Systems Gladiator "Shut down some of the bullshit the government is spending money on and use it to buy all the Microsoft stock. If we did tha

Re: [HACKERS] feature request: \qf datatype

2003-12-26 Thread Alex J. Avriette
in psql. I'm just unable to actually do the C part myself. If somebody would step up to the plate, we could see this in the next release. I haven't heard anyone say they didn't like it. alex -- [EMAIL PROTECTED] Alex J. Avriette, Windows Systems Defenestrator "Obj

Re: [HACKERS] psql \d option list overloaded

2004-01-04 Thread Alex J. Avriette
't have any particular allegiance to the forward slash over anything else. My chief concern is that what we're abstracting here are macros, and as such, they should not be treated as sql. Because they aren't sql. If you want to find out how to show the databases in sql, use psql -E.

Re: [HACKERS] psql \d option list overloaded

2004-01-05 Thread Alex J. Avriette
ht* with those extensions. You can't become a PostgreSQL guru without > being a newbie first. I vote we make it easier for newbies. What really frightens me here is that I know of several applications (shudder, "LAMP" applications) which use the output of "show tables"

[HACKERS] Brokenness in parsing of pg_hba.conf

2004-01-06 Thread Alex J. Avriette
ip4 address. However, I'm aware that many people don't even realize this is a valid address. As such, I won't lose any sleep over it, but I thought I'd mention it, since it surprised me today. Thoughts? Alex -- [EMAIL PROTECTED] Alex J. Avriette, Solaris Frobnosticator

Re: [HACKERS] Brokenness in parsing of pg_hba.conf

2004-01-06 Thread Alex J. Avriette
7;d really like to hear from others what their opinions on this are. alex -- [EMAIL PROTECTED] Alex J. Avriette, Shepherd of wayward Database Administrators "We are paying through the nose to be ignorant." - Larry Ellison ---(end of broadcast)

Re: [HACKERS] Brokenness in parsing of pg_hba.conf

2004-01-06 Thread Alex J. Avriette
On Tue, Jan 06, 2004 at 11:38:44PM -0500, Tom Lane wrote: > AFAICS, Alex is quite far out in left field to believe that this is a > standard notation. The fact that some BSD platforms have accepted it How did I know you'd say that, Tom? By "standard," I mean, "many

[HACKERS] RFC: Security documentation

2004-02-07 Thread Alex J. Avriette
luded in the next release. I don't feel that having zero documentation on this subject is acceptable. Thanks for your time, alex -- [EMAIL PROTECTED] Alex J. Avriette, Unix Systems Gladiator "You cannot invade the mainland United States. There would be a rifle behind each blade of g

[HACKERS] RFC: Very large scale postgres support

2004-02-07 Thread Alex J. Avriette
hopes that we can discuss both the best way to support very large scale databases, as well as how to handle them presently. Thanks again for your time. alex -- [EMAIL PROTECTED] Alex J. Avriette, Solaris Systems Masseur "I ... remain against the death penalty because I feel that eternal bor

Re: [HACKERS] RFC: Very large scale postgres support

2004-02-08 Thread Alex J. Avriette
load balancing (eg rotors or similar) and updates between postmasters, it would be (it seems to me) possible to drastically increase the available capacity of a database installation through the addition of more nodes. This has the added benefit of allowing us to distribute network resources. A

Re: [HACKERS] RFC: Security documentation

2004-02-08 Thread Alex J. Avriette
yone would be opposed to this, however. I'm happy to write the document and provide a patch for inclusion if we can come to agreeance on some basic policies. The reason I posted the original message in this thread is I wanted to know what others felt were appropriate policies, and to suggest

Re: [HACKERS] RFC: Very large scale postgres support

2004-02-08 Thread Alex J. Avriette
also think most of us would agree that the current "graft-on" replication methods are sub-ideal. alex -- [EMAIL PROTECTED] Alex J. Avriette, Unix Systems Gladiator The Emperor Wears No Clothes. http://www.drugsense.org/wodclock.htm ---(end of broadcast)--- TIP 8: explain analyze is your friend

Re: [HACKERS] RFC: Very large scale postgres support

2004-02-08 Thread Alex J. Avriette
On Sun, Feb 08, 2004 at 09:20:07PM -0500, Rod Taylor wrote: > On Sun, 2004-02-08 at 21:01, Alex J. Avriette wrote: > > On Sun, Feb 08, 2004 at 08:01:38PM -0500, Rod Taylor wrote: > > > > > Replication won't help if those are all mostly write transactions. If a &

Re: [HACKERS] RFC: Security documentation

2004-02-09 Thread Alex J. Avriette
stions via google first. If the docs were included on techdocs, google would find them soon enough. I suppose, also, anyone who was interested in securing their database would look a little further than the included documentation. Opinions? Alex -- [EMAIL PROTECTED] Alex J. Avriette, Shepherd of

Re: [HACKERS] Tablespaces

2004-02-26 Thread Alex J. Avriette
> I don't intend going this far, however. Perhaps now would be a good time to bring up my directio on Solaris question from a year or so back? Is there any interest in the ability to use raw disk? Alex (who is overjoyed to hear discussion of tablespaces again) -- [EMAIL PROTECTED] Alex

Re: [HACKERS] Tablespaces

2004-02-26 Thread Alex J. Avriette
I'm very glad to hear tablespaces mentioned again and see what looks like work being done on it. Thanks! Alex -- [EMAIL PROTECTED] Alex J. Avriette, Solaris Artillery Officer "Among the many misdeeds of the British rule in India, history will look upon the act of depriving a whole nation

Re: [HACKERS] [ADMIN] Schema comparisons

2004-02-28 Thread Alex J. Avriette
e" schema and the schema in cvs at work. This was a really painful process, and it occurred to me that it wouldn't be terribly hard to write a perl program to do it (I wound up using vim and diff). Is there interest in such a tool? I could probably have one written within a day or two. Alex -- [

Re: [HACKERS] Slony-I makes progress

2004-03-03 Thread Alex J. Avriette
;d like to avoid the dogmatic jihad by not submitting a perl tool if the eventual goal is to be end-to-end C (or java or tcl or whatever). Alex -- [EMAIL PROTECTED] Alex J. Avriette, Unix Systems Gladiator "Something seems to have happened to the life support system , Dave.

Re: [HACKERS] Slony-I makes progress

2004-03-05 Thread Alex J. Avriette
gui if need be). It seems to me, that until the postmaster has some kind of native replication, all replication efforts will be based on external programs. As such, they should be configured externally, and be treated as any other daemon would be. Alex -- [EMAIL PROTECTED] Alex J. Avriette, U

Re: [HACKERS] Timing of 'SELECT 1'

2004-03-12 Thread Alex J. Avriette
nobody actually come to a conclusion on what that "last msec" was from? Alex -- [EMAIL PROTECTED] Alex J. Avriette, Unix Systems Gladiator ---(end of broadcast)--- TIP 5: Have you checked our extensive FAQ? http://www.pos

<    2   3   4   5   6   7