Unix Technical Forum

Re: [DOCS] OS/X startup scripts

This is a discussion on Re: [DOCS] OS/X startup scripts within the Pgsql Patches forums, part of the PostgreSQL category; --> David Fetter <david@fetter.org> writes: > I haven't included the customary diffs. This points me to some of the > ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > Pgsql Patches

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-18-2008, 11:03 AM
Tom Lane
 
Posts: n/a
Default Re: [DOCS] OS/X startup scripts

David Fetter <david@fetter.org> writes:
> I haven't included the customary diffs. This points me to some of the
> many deficiencies of CVS, namely that I would need write access in
> order to have it create a diff,


Strange, it works fine for everyone else.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 7: You can help support the PostgreSQL project by donating at

http://www.postgresql.org/about/donate

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-18-2008, 11:03 AM
Andrew Dunstan
 
Posts: n/a
Default Re: [DOCS] OS/X startup scripts



Tom Lane wrote:
> David Fetter <david@fetter.org> writes:
>
>> I haven't included the customary diffs. This points me to some of the
>> many deficiencies of CVS, namely that I would need write access in
>> order to have it create a diff,
>>

>
> Strange, it works fine for everyone else.
>
>
>


Especially if you have cvsutils installed (can be found in many places
including fedora extras).

cheers

andrew

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-18-2008, 11:03 AM
Tom Lane
 
Posts: n/a
Default Re: [DOCS] OS/X startup scripts

David Fetter <david@fetter.org> writes:
> On Sun, May 13, 2007 at 07:04:44PM -0400, Andrew Dunstan wrote:
>> Tom Lane wrote:
>>> Strange, it works fine for everyone else.

>>
>> Especially if you have cvsutils installed (can be found in many
>> places including fedora extras).


> I didn't know about those, so I'll prepare a patch to the developer
> and documenter docs that mentions this utility


I dunno what cvsutils is, but I do know that plain old "cvs diff" works
fine whether you have commit privs or not. Rather than preparing a
patch to our docs, perhaps you should spend some time reading the CVS
docs.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-18-2008, 11:03 AM
Mark Kirkwood
 
Posts: n/a
Default Re: [DOCS] OS/X startup scripts

David Fetter wrote:
> cvs diff works just great until you want to add or remove a file
> without write permissions to the CVS repository, i.e. when you've
> checked out as anonymous.
>


I usually saved an untouched version of the tree to compare against, so
something like:

$ cvs diff -Nacr pgsql.orig pgsql

gives a complete patch including added/deleted files. It is a bit
primitive, but is pretty easy to do!

Cheers

Mark

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

http://archives.postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-18-2008, 11:03 AM
Neil Conway
 
Posts: n/a
Default Re: [DOCS] OS/X startup scripts

On Sun, 2007-13-05 at 18:58 -0700, David Fetter wrote:
> cvs diff works just great until you want to add or remove a file
> without write permissions to the CVS repository, i.e. when you've
> checked out as anonymous.


Personally, I usually work against a checkout from a local mirror of the
CVS repository (which you can create via cvsup or rsync). With that
setup, "cvs add" and "cvs diff -N" work fine, since you can arrange for
write access to the local mirror.

(I'm always surprised to hear that anyone does a non-trivial amount of
work on Postgres without setting up a CVS mirror...)

-Neil



---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 04-18-2008, 11:03 AM
Gregory Stark
 
Posts: n/a
Default Re: [DOCS] OS/X startup scripts

"Tom Lane" <tgl@sss.pgh.pa.us> writes:

> David Fetter <david@fetter.org> writes:
>> I haven't included the customary diffs. This points me to some of the
>> many deficiencies of CVS, namely that I would need write access in
>> order to have it create a diff,

>
> Strange, it works fine for everyone else.


If you have rsh/ssh access to a CVS repository then you do in fact need write
access just to generate diffs. It is one of the annoyances of CVS but it
doesn't really matter for Postgres where we use pserver anonymous access.

Personally I find CVS so terribly slow for large trees like Postgres that it's
essential to use rsync to maintain a local CVS repository. That makes 'cvs
diff' remarkably fast.

--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com


---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 04-18-2008, 11:03 AM
Heikki Linnakangas
 
Posts: n/a
Default Re: [DOCS] OS/X startup scripts

Gregory Stark wrote:
> "Tom Lane" <tgl@sss.pgh.pa.us> writes:
>
>> David Fetter <david@fetter.org> writes:
>>> I haven't included the customary diffs. This points me to some of the
>>> many deficiencies of CVS, namely that I would need write access in
>>> order to have it create a diff,

>> Strange, it works fine for everyone else.

>
> If you have rsh/ssh access to a CVS repository then you do in fact need write
> access just to generate diffs. It is one of the annoyances of CVS but it
> doesn't really matter for Postgres where we use pserver anonymous access.


You need write-access to add files, even on anonymouse server. We often
get patches with new files as separate attachments because of that.

> Personally I find CVS so terribly slow for large trees like Postgres that it's
> essential to use rsync to maintain a local CVS repository. That makes 'cvs
> diff' remarkably fast.


Yeah, I've done that for a long time. It's by far the best way to work
with CVS, "cvs add" works, and you can do diffs, checkouts etc. offline.

--
Heikki Linnakangas
EnterpriseDB http://www.enterprisedb.com

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 04-18-2008, 11:03 AM
Gregory Stark
 
Posts: n/a
Default Re: [DOCS] OS/X startup scripts

"Heikki Linnakangas" <heikki@enterprisedb.com> writes:

> You need write-access to add files, even on anonymouse server. We often get
> patches with new files as separate attachments because of that.


Oh quite right. I had forgotten but that was the original reason I switched to
using rsync. The alternative is to manually edit the Entries files to list the
new files.

--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com


---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 04-18-2008, 11:03 AM
Andrew Dunstan
 
Posts: n/a
Default Re: [DOCS] OS/X startup scripts



Heikki Linnakangas wrote:
>
> You need write-access to add files, even on anonymouse server. We
> often get patches with new files as separate attachments because of that.
>
>


This is the part that cvsutils fakes for you (by hacking the local cvs
metadata files) so you don't need write access.

cheers

andrew

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

http://archives.postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 04-18-2008, 11:03 AM
Greg Smith
 
Posts: n/a
Default Re: [DOCS] OS/X startup scripts

On Mon, 14 May 2007, Gregory Stark wrote:

> Personally I find CVS so terribly slow for large trees like Postgres that it's
> essential to use rsync to maintain a local CVS repository. That makes 'cvs
> diff' remarkably fast.


Having recently tried to get this to work right and not quite nailed it
down yet, I know it would be a help to new developers if someone using
this technique would write out a suggested setup/workflow for generating
patches this way. Right now the best instructions out there are those
that go with the buildfarm

http://pgfoundry.org/docman/view.php...Farm-HOWTO.txt

and those aren't quite focused right if the goal is to work on new patches
while keeping in sync with the repository.

--
* Greg Smith gsmith@gregsmith.com http://www.gregsmith.com Baltimore, MD

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:22 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com