[snip]
So clearly we have a session temp table which respects my user
defaults...we just can't create it directly.
That seems weird.
I am struggling to decide whether it is right that _any_ table created AS SELECT gets the defaults. (Then again, I have never been at ease with the whole idea of default values.)I love the defaults coming over in create as select. Plus I got comfortable hating myself years ago.
I will hate myself when I exploit that trick.
On Feb 4, 2021, at 4:00 AM, Martin Bowes <martin.bowes@ndph.ox.ac.uk> wrote:It does seem weird. It might be so that declare global temporary table can be fully locking-free; if defaults were allowed then you need an insert into iidefault.
So clearly we have a session temp table which respects my user defaultsrCawe just canrCOt create it directly.
That seems weird.
On Feb 4, 2021, at 4:00 AM, Martin Bowes <martin.bowes@ndph.ox.ac.uk> wrote:
So clearly we have a session temp table which respects my user defaultsrCawe just canrCOt create it directly.
That seems weird.
On Feb 4, 2021, at 9:17 AM, Martin Bowes <martin.bowes@ndph.ox.ac.uk> wrote:
Hi Karl,
Do you need an insert into iidefaults? I presume there no insert into iirelation, iiattribute for the temps when created so I assume that the temp table details are a purely in memory structure.
Marty
-----Original Message-----
From: Karl Schendel <schendel@kbcomputer.com>
Sent: 04 February 2021 14:05
To: info-ingres@lists.planetingres.org
Subject: Re: [Info-ingres] defaults in session tables
--- Synchronet 3.21b-Linux NewsLink 1.2On Feb 4, 2021, at 4:00 AM, Martin Bowes <martin.bowes@ndph.ox.ac.uk> wrote: >>
So clearly we have a session temp table which respects my user defaultsrCawe just canrCOt create it directly.
That seems weird.
It does seem weird. It might be so that declare global temporary table can be fully locking-free; if defaults were allowed then you need an insert into iidefault.
The declare as select has the new GTT referring to an existing value in iidefault, so the issue doesn't arise.
A bit of a lame excuse though.
Karl
_______________________________________________
Info-ingres mailing list
Info-ingres@lists.planetingres.org https://lists.planetingres.org/mailman/listinfo/info-ingres
| Sysop: | Amessyroom |
|---|---|
| Location: | Fayetteville, NC |
| Users: | 65 |
| Nodes: | 6 (0 / 6) |
| Uptime: | 08:07:32 |
| Calls: | 862 |
| Files: | 1,311 |
| D/L today: |
2 files (6,679K bytes) |
| Messages: | 264,936 |