List:Internals« Previous MessageNext Message »
From:Sergei Golubchik Date:August 18 2001 2:59pm
Subject:Re: adding INSERT support to MERGE tables
View as plain text  
Hi!

On Aug 18, Michael Widenius wrote:
> 
> Sergei> Also, INSERT_METHOD should also go to MRG file, for isam layer to know
> it.
> 
> Why?
> It's should be enough for MySQL to know about this.

It CAN be done that way - that is to pass INSERT_METHOD as an argument
to mrg_write().

But to be consistent it should be stored on isam layer - it's isam information,
and MySQL shouldn't ever worry about it.

> Sergei> Also in ROUND_ROBIN it has somehow to preserve the last-target-table
> number
> Sergei> on shutdown. This will change MRG files from simple ``ls *.MYI >
> table.MRG''
> Sergei> to something more complex. In ROUND_ROBIN they also won't be read-only.
> 
> Sorry, but I didn't get that.

Well, suppose you have three tables in MERGE, and INSERT_METHOD=ROUND_ROBIN
First insert goes to the first table, the second one - to the second.
Now one does ``mysql.server stop; mysql.server start'' - or simply mysqld
dies and safe_mysqld restarts it. I would prefer the first insert after restart
to go to the third table.

Regards,
Sergei

-- 
MySQL Development Team
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /   Sergei Golubchik <serg@stripped>
 / /|_/ / // /\ \/ /_/ / /__  MySQL AB, http://www.mysql.com/
/_/  /_/\_, /___/\___\_\___/  Osnabrueck, Germany
       <___/
Thread
adding INSERT support to MERGE tablesBenjamin Pflugmann17 Aug
  • Re: adding INSERT support to MERGE tablesSergei Golubchik17 Aug
    • Re: adding INSERT support to MERGE tablesMichael Widenius17 Aug
      • Re: adding INSERT support to MERGE tablesBenjamin Pflugmann30 Aug
        • Re: adding INSERT support to MERGE tablesSergei Golubchik30 Aug
          • Re: adding INSERT support to MERGE tablesBenjamin Pflugmann30 Aug
        • Re: adding INSERT support to MERGE tablesMichael Widenius30 Aug
          • Re: adding INSERT support to MERGE tablesBenjamin Pflugmann30 Aug
            • Re: adding INSERT support to MERGE tablesMichael Widenius1 Sep
              • Re: adding INSERT support to MERGE tablesBenjamin Pflugmann5 Sep
                • Re: adding INSERT support to MERGE tablesMichael Widenius6 Sep
                  • Re: adding INSERT support to MERGE tablesBenjamin Pflugmann10 Sep
                    • Re: adding INSERT support to MERGE tablesBenjamin Pflugmann11 Sep
                      • Re: adding INSERT support to MERGE tablesMichael Widenius12 Sep
                        • Re: adding INSERT support to MERGE tablesBenjamin Pflugmann12 Sep
                          • Re: adding INSERT support to MERGE tablesMichael Widenius13 Sep
                            • Re: adding INSERT support to MERGE tablesBenjamin Pflugmann18 Sep
                      • Re: adding INSERT support to MERGE tablesMichael Widenius22 Sep
                      • Re: adding INSERT support to MERGE tablesMichael Widenius24 Sep
                        • Re: adding INSERT support to MERGE tablesBenjamin Pflugmann27 Sep
    • Re: adding INSERT support to MERGE tablesSergei Golubchik17 Aug
      • Re: adding INSERT support to MERGE tablesBenjamin Pflugmann17 Aug
      • Re: adding INSERT support to MERGE tablesMichael Widenius18 Aug
        • Re: adding INSERT support to MERGE tablesSergei Golubchik18 Aug
          • Re: adding INSERT support to MERGE tablesMichael Widenius20 Aug
RE: adding INSERT support to MERGE tablesThe Tilghman20 Aug