Re: Paste rows rough patch

From: "Dave Page" <dpage(at)vale-housing(dot)co(dot)uk>
To: "Edward Di Geronimo Jr(dot)" <edigeronimo(at)xtracards(dot)com>, <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: Paste rows rough patch
Date: 2006-05-03 15:05:58
Message-ID: E7F85A1B5FF8D44C8A1AF6885BC9A0E4011CA0EB@ratbert.vale-housing.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

> -----Original Message-----
> From: pgadmin-hackers-owner(at)postgresql(dot)org
> [mailto:pgadmin-hackers-owner(at)postgresql(dot)org] On Behalf Of
> Edward Di Geronimo Jr.
> Sent: 02 May 2006 22:31
> To: pgadmin-hackers(at)postgresql(dot)org
> Subject: Re: [pgadmin-hackers] Paste rows rough patch
>
> Quoting Dave Page <dpage(at)vale-housing(dot)co(dot)uk>:
>
> > Yes - in particular the quote settings - I have lots of data
> > containing newlines for example, which this won't work with
> for obvious reasons.
>
> Ok, that's done. Seems to work ok for me, but I don't have
> any real data that would stress it to test with, just a few test rows.
>
> > OID columns should be ignored, but serial columns should be
> optional
> > imho - just a simple 'The data you are pasting include values that
> > will be inserted into a serial column. Do you want to skip
> the serial
> > valules and allow new ones to be assigned? Y/N' prompt at
> paste time.
>
> I didn't look too hard, but it looked like OIDs are always
> going to be the first column when present. Based on that, I
> updated the patch to skip the first column when there are OIDs.
>
> I'm probably not going to have time to deal with the serial
> columns part in the next few days. The patch should be usable
> now if people feel like testing it.

Hmm, I'm seeing some odd behaviour...

- A copy/paste of a single row seems to work in most cases, but:

- Sometimes, nothing got pasted into the new row
- Sometimes, the entire row got pasted into the end of an existing
cell (which had been selected, prior to selecting the '*' row.

I couldn't find a pattern to reproduce these, but they did occur a
number of times during a few minutes of heavy copy/pasting.

- Multi-row pasting doesn't work, but I guess you know that!

Regards, Dave.

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message Edward Di Geronimo Jr. 2006-05-03 15:30:30 Re: Paste rows rough patch
Previous Message svn 2006-05-03 12:50:58 SVN Commit by dpage: r5116 - in branches/REL-1_4_0_PATCHES/pgadmin3: . src/dlg src/include/base